location_settings_dialog_outcome.h 1.3 KB

123456789101112131415161718192021222324252627282930
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_LOCATION_ANDROID_LOCATION_SETTINGS_DIALOG_OUTCOME_H_
  5. #define COMPONENTS_LOCATION_ANDROID_LOCATION_SETTINGS_DIALOG_OUTCOME_H_
  6. // An enum to describe the outcome of a system location setting prompt.
  7. // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.location
  8. enum LocationSettingsDialogOutcome {
  9. // The user accepted the prompt and the system location setting has been
  10. // flipped to granted.
  11. GRANTED = 1,
  12. // The user rejected the prompt and the system location setting has not been
  13. // flipped.
  14. DENIED = 2,
  15. // The prompt could not be triggered.
  16. // When CanPromptToEnableSystemLocationSetting() returns true, this should
  17. // only happen in exceptional circonstances, e.g.
  18. // - In the case of a race condition where the system location setting is
  19. // flipped elsewhere before the prompt could be triggered;
  20. // - In the case where some of the features required to trigger a system
  21. // location setting prompt became unavailable or unresponsive after the
  22. // response from CanPromptToEnableSystemLocationSetting() was received.
  23. NO_PROMPT = 3,
  24. };
  25. #endif // COMPONENTS_LOCATION_ANDROID_LOCATION_SETTINGS_DIALOG_OUTCOME_H_