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

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

Issue 2800683008: Sync confirmation: change "Settings" link to checkbox (Closed)
Patch Set: tests Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SYNC_CONFIRMATION_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 18 matching lines...) Expand all
29 29
30 // AccountTrackerService::Observer: 30 // AccountTrackerService::Observer:
31 void OnAccountUpdated(const AccountInfo& info) override; 31 void OnAccountUpdated(const AccountInfo& info) override;
32 32
33 // chrome::BrowserListObserver: 33 // chrome::BrowserListObserver:
34 void OnBrowserRemoved(Browser* browser) override; 34 void OnBrowserRemoved(Browser* browser) override;
35 35
36 protected: 36 protected:
37 // Handles "confirm" message from the page. No arguments. 37 // Handles "confirm" message from the page. No arguments.
38 // This message is sent when the user confirms that they want complete sign in 38 // This message is sent when the user confirms that they want complete sign in
39 // with default sync settings. 39 // with default sync settings. Passed a single boolean argument: whether to
40 // configure settings before signing in.
40 virtual void HandleConfirm(const base::ListValue* args); 41 virtual void HandleConfirm(const base::ListValue* args);
41 42
42 // Handles "undo" message from the page. No arguments. 43 // Handles "undo" message from the page. No arguments.
43 // This message is sent when the user clicks "undo" on the sync confirmation 44 // This message is sent when the user clicks "undo" on the sync confirmation
44 // dialog, which aborts signin and prevents sync from starting. 45 // dialog, which aborts signin and prevents sync from starting.
45 virtual void HandleUndo(const base::ListValue* args); 46 virtual void HandleUndo(const base::ListValue* args);
46 47
47 // Handles "goToSettings" message from the page. No arguments.
48 // This message is sent when the user clicks on the "Settings" link in the
49 // sync confirmation dialog, which completes sign in but takes the user to the
50 // sync settings page for configuration before starting sync.
51 virtual void HandleGoToSettings(const base::ListValue* args);
52
53 // Handles the web ui message sent when the html content is done being laid 48 // Handles the web ui message sent when the html content is done being laid
54 // out and it's time to resize the native view hosting it to fit. |args| is 49 // out and it's time to resize the native view hosting it to fit. |args| is
55 // a single integer value for the height the native view should resize to. 50 // a single integer value for the height the native view should resize to.
56 virtual void HandleInitializedWithSize(const base::ListValue* args); 51 virtual void HandleInitializedWithSize(const base::ListValue* args);
57 52
58 // Sets the profile picture shown in the dialog to the image at |url|. 53 // Sets the profile picture shown in the dialog to the image at |url|.
59 virtual void SetUserImageURL(const std::string& url); 54 virtual void SetUserImageURL(const std::string& url);
60 55
61 // Closes the modal signin window and calls 56 // Closes the modal signin window and calls
62 // LoginUIService::SyncConfirmationUIClosed with |result|. |result| indicates 57 // LoginUIService::SyncConfirmationUIClosed with |result|. |result| indicates
63 // the option chosen by the user in the confirmation UI. 58 // the option chosen by the user in the confirmation UI.
64 void CloseModalSigninWindow( 59 void CloseModalSigninWindow(
65 LoginUIService::SyncConfirmationUIClosedResult result); 60 LoginUIService::SyncConfirmationUIClosedResult result);
66 61
67 private: 62 private:
68 Profile* profile_; 63 Profile* profile_;
69 64
70 // Weak reference to the browser that showed the sync confirmation dialog. 65 // Weak reference to the browser that showed the sync confirmation dialog.
71 Browser* browser_; 66 Browser* browser_;
72 67
73 // Records whether the user clicked on Undo, Ok, or Settings. 68 // Records whether the user clicked on Undo, Ok, or Settings.
74 bool did_user_explicitly_interact; 69 bool did_user_explicitly_interact;
75 70
76 DISALLOW_COPY_AND_ASSIGN(SyncConfirmationHandler); 71 DISALLOW_COPY_AND_ASSIGN(SyncConfirmationHandler);
77 }; 72 };
78 73
79 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ 74 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_sync_starter.cc ('k') | chrome/browser/ui/webui/signin/sync_confirmation_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698