| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // Subclasses can override these methods to pass additional parameters | 88 // Subclasses can override these methods to pass additional parameters |
| 89 // to loadTimeData. Generally, it is a bad approach, and it should be replaced | 89 // to loadTimeData. Generally, it is a bad approach, and it should be replaced |
| 90 // with Context at some point. | 90 // with Context at some point. |
| 91 virtual void GetAdditionalParameters(base::DictionaryValue* parameters); | 91 virtual void GetAdditionalParameters(base::DictionaryValue* parameters); |
| 92 | 92 |
| 93 // Shortcut for calling JS methods on WebUI side. | 93 // Shortcut for calling JS methods on WebUI side. |
| 94 void CallJS(const std::string& method); | 94 void CallJS(const std::string& method); |
| 95 void CallJS(const std::string& method, | 95 void CallJS(const std::string& method, |
| 96 const base::Value& arg1); | 96 const base::Value& arg1); |
| 97 void CallJS(const std::string& method, | 97 void CallJS(const std::string& method, |
| 98 const std::string& arg1); |
| 99 void CallJS(const std::string& method, |
| 100 int arg1); |
| 101 void CallJS(const std::string& method, |
| 102 bool arg1); |
| 103 void CallJS(const std::string& method, |
| 98 const base::Value& arg1, | 104 const base::Value& arg1, |
| 99 const base::Value& arg2); | 105 const base::Value& arg2); |
| 100 void CallJS(const std::string& method, | 106 void CallJS(const std::string& method, |
| 101 const base::Value& arg1, | 107 const base::Value& arg1, |
| 102 const base::Value& arg2, | 108 const base::Value& arg2, |
| 103 const base::Value& arg3); | 109 const base::Value& arg3); |
| 104 void CallJS(const std::string& method, | 110 void CallJS(const std::string& method, |
| 105 const base::Value& arg1, | 111 const base::Value& arg1, |
| 106 const base::Value& arg2, | 112 const base::Value& arg2, |
| 107 const base::Value& arg3, | 113 const base::Value& arg3, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 bool page_is_ready_; | 183 bool page_is_ready_; |
| 178 | 184 |
| 179 base::DictionaryValue* localized_values_; | 185 base::DictionaryValue* localized_values_; |
| 180 | 186 |
| 181 DISALLOW_COPY_AND_ASSIGN(BaseScreenHandler); | 187 DISALLOW_COPY_AND_ASSIGN(BaseScreenHandler); |
| 182 }; | 188 }; |
| 183 | 189 |
| 184 } // namespace chromeos | 190 } // namespace chromeos |
| 185 | 191 |
| 186 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ | 192 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ |
| OLD | NEW |