| OLD | NEW |
| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual void HandleGoToSettings(const base::ListValue* args); | 48 virtual void HandleGoToSettings(const base::ListValue* args); |
| 49 | 49 |
| 50 // Handles the web ui message sent when the html content is done being laid | 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 | 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. | 52 // a single integer value for the height the native view should resize to. |
| 53 virtual void HandleInitializedWithSize(const base::ListValue* args); | 53 virtual void HandleInitializedWithSize(const base::ListValue* args); |
| 54 | 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(); | |
| 59 | |
| 60 // Closes the modal signin window and calls | 58 // Closes the modal signin window and calls |
| 61 // LoginUIService::SyncConfirmationUIClosed with |result|. |result| indicates | 59 // LoginUIService::SyncConfirmationUIClosed with |result|. |result| indicates |
| 62 // the option chosen by the user in the confirmation UI. | 60 // the option chosen by the user in the confirmation UI. |
| 63 void CloseModalSigninWindow( | 61 void CloseModalSigninWindow( |
| 64 LoginUIService::SyncConfirmationUIClosedResult result); | 62 LoginUIService::SyncConfirmationUIClosedResult result); |
| 65 | 63 |
| 66 private: | 64 private: |
| 67 // Records whether the user clicked on Undo, Ok, or Settings. | 65 // Records whether the user clicked on Undo, Ok, or Settings. |
| 68 bool did_user_explicitly_interact; | 66 bool did_user_explicitly_interact; |
| 69 | 67 |
| 70 DISALLOW_COPY_AND_ASSIGN(SyncConfirmationHandler); | 68 DISALLOW_COPY_AND_ASSIGN(SyncConfirmationHandler); |
| 71 }; | 69 }; |
| 72 | 70 |
| 73 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ | 71 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ |
| OLD | NEW |