| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/browser/webui/web_ui.h" | 9 #include "content/public/browser/web_ui_message_handler.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class DictionaryValue; | 13 class DictionaryValue; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace chromeos { | 16 namespace chromeos { |
| 17 | 17 |
| 18 // Base class for the OOBE/Login WebUI handlers. | 18 // Base class for the OOBE/Login WebUI handlers. |
| 19 class BaseScreenHandler : public WebUIMessageHandler { | 19 class BaseScreenHandler : public content::WebUIMessageHandler { |
| 20 public: | 20 public: |
| 21 BaseScreenHandler(); | 21 BaseScreenHandler(); |
| 22 virtual ~BaseScreenHandler(); | 22 virtual ~BaseScreenHandler(); |
| 23 | 23 |
| 24 // Gets localized strings to be used on the page. | 24 // Gets localized strings to be used on the page. |
| 25 virtual void GetLocalizedStrings( | 25 virtual void GetLocalizedStrings( |
| 26 base::DictionaryValue* localized_strings) = 0; | 26 base::DictionaryValue* localized_strings) = 0; |
| 27 | 27 |
| 28 // This method is called when page is ready. It propagates to inherited class | 28 // This method is called when page is ready. It propagates to inherited class |
| 29 // via virtual Initialize() method (see below). | 29 // via virtual Initialize() method (see below). |
| (...skipping 16 matching lines...) Expand all Loading... |
| 46 private: | 46 private: |
| 47 // Keeps whether page is ready. | 47 // Keeps whether page is ready. |
| 48 bool page_is_ready_; | 48 bool page_is_ready_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(BaseScreenHandler); | 50 DISALLOW_COPY_AND_ASSIGN(BaseScreenHandler); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace chromeos | 53 } // namespace chromeos |
| 54 | 54 |
| 55 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ | 55 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ |
| OLD | NEW |