OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMEOS_LOGIN_LOGIN_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 LoginUIHandlerDelegate* delegate_; | 85 LoginUIHandlerDelegate* delegate_; |
86 | 86 |
87 private: | 87 private: |
88 // BaseLoginUIHandler implementation. | 88 // BaseLoginUIHandler implementation. |
89 virtual void ClearAndEnablePassword() OVERRIDE; | 89 virtual void ClearAndEnablePassword() OVERRIDE; |
90 virtual void ShowError(const std::string& error_text, | 90 virtual void ShowError(const std::string& error_text, |
91 const std::string& help_link_text, | 91 const std::string& help_link_text, |
92 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 92 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
93 | 93 |
94 // Callbacks from javascript. | 94 // Callbacks from javascript. |
95 void HandleAuthenticateUser(const ListValue* args); | 95 void HandleAuthenticateUser(const base::ListValue* args); |
96 void HandleLaunchIncognito(const ListValue* args); | 96 void HandleLaunchIncognito(const base::ListValue* args); |
97 void HandleShutdownSystem(const ListValue* args); | 97 void HandleShutdownSystem(const base::ListValue* args); |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(LoginUIHandler); | 99 DISALLOW_COPY_AND_ASSIGN(LoginUIHandler); |
100 }; | 100 }; |
101 | 101 |
102 // Boilerplate class that is used to associate the LoginUI code with the WebUI | 102 // Boilerplate class that is used to associate the LoginUI code with the WebUI |
103 // code. | 103 // code. |
104 class LoginUI : public ChromeWebUI { | 104 class LoginUI : public ChromeWebUI { |
105 public: | 105 public: |
106 explicit LoginUI(TabContents* contents); | 106 explicit LoginUI(TabContents* contents); |
107 | 107 |
108 // Return the URL for a given search term. | 108 // Return the URL for a given search term. |
109 static const GURL GetLoginURLWithSearchText(const string16& text); | 109 static const GURL GetLoginURLWithSearchText(const string16& text); |
110 | 110 |
111 static RefCountedMemory* GetFaviconResourceBytes(); | 111 static RefCountedMemory* GetFaviconResourceBytes(); |
112 | 112 |
113 private: | 113 private: |
114 DISALLOW_COPY_AND_ASSIGN(LoginUI); | 114 DISALLOW_COPY_AND_ASSIGN(LoginUI); |
115 }; | 115 }; |
116 | 116 |
117 } // namespace chromeos | 117 } // namespace chromeos |
118 | 118 |
119 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ | 119 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ |
OLD | NEW |