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

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

Issue 1814513002: Fix sizing issues in the tab modal signin flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests Created 4 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 23 matching lines...) Expand all
34 // Handles "confirm" message from the page. No arguments. 34 // Handles "confirm" message from the page. No arguments.
35 // This message is sent when the user confirms that they want complete sign in 35 // This message is sent when the user confirms that they want complete sign in
36 // with default sync settings. 36 // with default sync settings.
37 virtual void HandleConfirm(const base::ListValue* args); 37 virtual void HandleConfirm(const base::ListValue* args);
38 38
39 // Handles "undo" message from the page. No arguments. 39 // Handles "undo" message from the page. No arguments.
40 // This message is sent when the user clicks "undo" on the sync confirmation 40 // This message is sent when the user clicks "undo" on the sync confirmation
41 // dialog, which aborts signin and prevents sync from starting. 41 // dialog, which aborts signin and prevents sync from starting.
42 virtual void HandleUndo(const base::ListValue* args); 42 virtual void HandleUndo(const base::ListValue* args);
43 43
44 // Handles "initialized" message from the page. No arguments.
45 // This message is sent when the sync confirmation dialog is finished being
46 // initialized.
47 virtual void HandleInitialized(const base::ListValue* args);
48
49 // Handles "goToSettings" message from the page. No arguments. 44 // Handles "goToSettings" message from the page. No arguments.
50 // This message is sent when the user clicks on the "Settings" link in the 45 // This message is sent when the user clicks on the "Settings" link in the
51 // sync confirmation dialog, which completes sign in but takes the user to the 46 // sync confirmation dialog, which completes sign in but takes the user to the
52 // sync settings page for configuration before starting sync. 47 // sync settings page for configuration before starting sync.
53 virtual void HandleGoToSettings(const base::ListValue* args); 48 virtual void HandleGoToSettings(const base::ListValue* args);
54 49
50 // Handles the web ui message sent when the html content is done being laid
51 // out and it's time to resize the native view hosting it to fit. |args| is
52 // a single integer value for the height the native view should resize to.
53 virtual void HandleInitializedWithSize(const base::ListValue* args);
54
55 // Sets the profile picture shown in the dialog to the image at |url|. 55 // Sets the profile picture shown in the dialog to the image at |url|.
56 virtual void SetUserImageURL(const std::string& url); 56 virtual void SetUserImageURL(const std::string& url);
57 57
58 Browser* GetDesktopBrowser(); 58 Browser* GetDesktopBrowser();
59 void CloseModalSigninWindow( 59 void CloseModalSigninWindow(
60 LoginUIService::SyncConfirmationUIClosedResults results); 60 LoginUIService::SyncConfirmationUIClosedResults results);
61 61
62 DISALLOW_COPY_AND_ASSIGN(SyncConfirmationHandler); 62 DISALLOW_COPY_AND_ASSIGN(SyncConfirmationHandler);
63 }; 63 };
64 64
65 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ 65 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler.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