| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_INLINE_LOGIN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/public/browser/web_ui_message_handler.h" | 10 #include "content/public/browser/web_ui_message_handler.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // work. | 47 // work. |
| 48 void HandleCompleteLoginMessage(const base::ListValue* args); | 48 void HandleCompleteLoginMessage(const base::ListValue* args); |
| 49 | 49 |
| 50 // JS callback to switch the UI from a constrainted dialog to a full tab. | 50 // JS callback to switch the UI from a constrainted dialog to a full tab. |
| 51 void HandleSwitchToFullTabMessage(const base::ListValue* args); | 51 void HandleSwitchToFullTabMessage(const base::ListValue* args); |
| 52 | 52 |
| 53 // Handles the web ui message sent when the navigation button is clicked by | 53 // Handles the web ui message sent when the navigation button is clicked by |
| 54 // the user, requesting either a back navigation or closing the dialog. | 54 // the user, requesting either a back navigation or closing the dialog. |
| 55 void HandleNavigationButtonClicked(const base::ListValue* args); | 55 void HandleNavigationButtonClicked(const base::ListValue* args); |
| 56 | 56 |
| 57 // Handles the web ui message sent when the window is closed from javascript. |
| 58 void HandleDialogClose(const base::ListValue* args); |
| 59 |
| 57 virtual void SetExtraInitParams(base::DictionaryValue& params) {} | 60 virtual void SetExtraInitParams(base::DictionaryValue& params) {} |
| 58 virtual void CompleteLogin(const base::ListValue* args) = 0; | 61 virtual void CompleteLogin(const base::ListValue* args) = 0; |
| 59 | 62 |
| 60 base::WeakPtrFactory<InlineLoginHandler> weak_ptr_factory_; | 63 base::WeakPtrFactory<InlineLoginHandler> weak_ptr_factory_; |
| 61 | 64 |
| 62 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandler); | 65 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandler); |
| 63 }; | 66 }; |
| 64 | 67 |
| 65 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ | 68 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ |
| OLD | NEW |