Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: components/location/android/location_settings_dialog_outcome.h

Issue 2709883005: Stubs for triggering the LSD in Clank (Closed)
Patch Set: Group location settings dialog enums into a single java_cpp_enum rule Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/location/android/location_settings_dialog_context.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
5 #ifndef COMPONENTS_LOCATION_LOCATION_SETTINGS_DIALOG_OUTCOME_H_
6 #define COMPONENTS_LOCATION_LOCATION_SETTINGS_DIALOG_OUTCOME_H_
7
8 // An enum to describe the outcome of a system location setting prompt.
9 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.location
10 enum LocationSettingsDialogOutcome {
11 // The user accepted the prompt and the system location setting has been
12 // flipped to granted.
13 GRANTED = 1,
14
15 // The user rejected the prompt and the system location setting has not been
16 // flipped.
17 DENIED = 2,
18
19 // The prompt could not be triggered.
20 // When CanPromptToEnableSystemLocationSetting() returns true, this should
21 // only happen in exceptional circonstances, e.g.
22 // - In the case of a race condition where the system location setting is
23 // flipped elsewhere before the prompt could be triggered;
24 // - In the case where some of the features required to trigger a system
25 // location setting prompt became unavailable or unresponsive after the
26 // response from CanPromptToEnableSystemLocationSetting() was received.
27 NO_PROMPT = 3,
28 };
29
30 #endif // COMPONENTS_LOCATION_LOCATION_SETTINGS_DIALOG_OUTCOME_H_
OLDNEW
« no previous file with comments | « components/location/android/location_settings_dialog_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698