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

Unified Diff: chrome/browser/ui/profile_chooser_constants.h

Issue 297803007: Move profile_chooser enums to a constant place for mac and win. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit tests need love too Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/profile_chooser_constants.h
diff --git a/chrome/browser/ui/profile_chooser_constants.h b/chrome/browser/ui/profile_chooser_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..93f7201e36bc1e75f8e4dd92a827e3f370c919c8
--- /dev/null
+++ b/chrome/browser/ui/profile_chooser_constants.h
@@ -0,0 +1,38 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_PROFILE_CHOOSER_CONSTANTS_H_
+#define CHROME_BROWSER_UI_PROFILE_CHOOSER_CONSTANTS_H_
+
+namespace profiles {
+
+// Different views that can be displayed in the profile chooser bubble.
+enum BubbleViewMode {
+ // Shows a "fast profile switcher" view.
+ BUBBLE_VIEW_MODE_PROFILE_CHOOSER,
+ // Shows a list of accounts for the active user.
+ BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT,
+ // Shows a web view for primary sign in.
+ BUBBLE_VIEW_MODE_GAIA_SIGNIN,
+ // Shows a web view for adding secondary accounts.
+ BUBBLE_VIEW_MODE_GAIA_ADD_ACCOUNT,
+ // Shows a web view for reauthenticating an account.
+ BUBBLE_VIEW_MODE_GAIA_REAUTH,
+ // Shows a view for confirming account removal.
+ BUBBLE_VIEW_MODE_ACCOUNT_REMOVAL,
+ // Shows a view for ending new profile management preview.
+ BUBBLE_VIEW_MODE_END_PREVIEW,
+};
+
+// Tutorial modes that can be displayed in the profile chooser bubble.
+enum TutorialMode {
+ TUTORIAL_MODE_NONE, // No tutorial card shown.
+ TUTORIAL_MODE_ENABLE_PREVIEW, // The enable-mirror-preview tutorial shown.
+ TUTORIAL_MODE_WELCOME, // The welcome-to-mirror tutorial shown.
+ TUTORIAL_MODE_SEND_FEEDBACK, // The send-feedback tutorial shown.
+};
+
+}; // namespace profiles
+
+#endif // CHROME_BROWSER_UI_PROFILE_CHOOSER_CONSTANTS_H_
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698