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

Side by Side Diff: chrome/browser/ui/webui/signin/login_ui_service.h

Issue 1806353002: Enhanced Sync Confirmation modal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 18 matching lines...) Expand all
29 virtual void CloseUI() = 0; 29 virtual void CloseUI() = 0;
30 protected: 30 protected:
31 virtual ~LoginUI() {} 31 virtual ~LoginUI() {}
32 }; 32 };
33 33
34 // Used when the sync confirmation UI is closed to signify which option was 34 // Used when the sync confirmation UI is closed to signify which option was
35 // selected by the user. 35 // selected by the user.
36 enum SyncConfirmationUIClosedResults { 36 enum SyncConfirmationUIClosedResults {
37 // Start sync immediately. 37 // Start sync immediately.
38 SYNC_WITH_DEFAULT_SETTINGS, 38 SYNC_WITH_DEFAULT_SETTINGS,
39 // Start sync immediately and go to the 'Activity controls' section of
40 // the privacy settings page.
41 SYNC_WITH_ACTIVITY_CONTROLS,
39 // Show the user the sync settings before starting sync. 42 // Show the user the sync settings before starting sync.
40 CONFIGURE_SYNC_FIRST, 43 CONFIGURE_SYNC_FIRST,
41 // The signing process was aborted, don't start sync or show settings. 44 // The signing process was aborted, don't start sync or show settings.
42 ABORT_SIGNIN, 45 ABORT_SIGNIN,
43 }; 46 };
44 47
45 // Interface for obervers of LoginUIService. 48 // Interface for obervers of LoginUIService.
46 class Observer { 49 class Observer {
47 public: 50 public:
48 // Called when a new login UI is shown. 51 // Called when a new login UI is shown.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 112
110 // List of observers. 113 // List of observers.
111 base::ObserverList<Observer> observer_list_; 114 base::ObserverList<Observer> observer_list_;
112 115
113 base::string16 last_login_result_; 116 base::string16 last_login_result_;
114 117
115 DISALLOW_COPY_AND_ASSIGN(LoginUIService); 118 DISALLOW_COPY_AND_ASSIGN(LoginUIService);
116 }; 119 };
117 120
118 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 121 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698