| 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_NETWORK_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 class CoreOobeActor; | 23 class CoreOobeActor; |
| 24 class IdleDetector; | 24 class IdleDetector; |
| 25 | 25 |
| 26 struct NetworkScreenHandlerOnLanguageChangedCallbackData; | 26 struct NetworkScreenHandlerOnLanguageChangedCallbackData; |
| 27 | 27 |
| 28 // WebUI implementation of NetworkScreenActor. It is used to interact with | 28 // WebUI implementation of NetworkScreenActor. It is used to interact with |
| 29 // the welcome screen (part of the page) of the OOBE. | 29 // the welcome screen (part of the page) of the OOBE. |
| 30 class NetworkScreenHandler : public NetworkScreenActor, | 30 class NetworkScreenHandler : public NetworkScreenActor, |
| 31 public BaseScreenHandler, | 31 public BaseScreenHandler, |
| 32 public ComponentExtensionIMEManager::Observer, | |
| 33 public input_method::InputMethodManager::Observer { | 32 public input_method::InputMethodManager::Observer { |
| 34 public: | 33 public: |
| 35 explicit NetworkScreenHandler(CoreOobeActor* core_oobe_actor); | 34 explicit NetworkScreenHandler(CoreOobeActor* core_oobe_actor); |
| 36 virtual ~NetworkScreenHandler(); | 35 virtual ~NetworkScreenHandler(); |
| 37 | 36 |
| 38 // NetworkScreenActor implementation: | 37 // NetworkScreenActor implementation: |
| 39 virtual void SetDelegate(NetworkScreenActor::Delegate* screen) OVERRIDE; | 38 virtual void SetDelegate(NetworkScreenActor::Delegate* screen) OVERRIDE; |
| 40 virtual void PrepareToShow() OVERRIDE; | 39 virtual void PrepareToShow() OVERRIDE; |
| 41 virtual void Show() OVERRIDE; | 40 virtual void Show() OVERRIDE; |
| 42 virtual void Hide() OVERRIDE; | 41 virtual void Hide() OVERRIDE; |
| 43 virtual void ShowError(const base::string16& message) OVERRIDE; | 42 virtual void ShowError(const base::string16& message) OVERRIDE; |
| 44 virtual void ClearErrors() OVERRIDE; | 43 virtual void ClearErrors() OVERRIDE; |
| 45 virtual void ShowConnectingStatus(bool connecting, | 44 virtual void ShowConnectingStatus(bool connecting, |
| 46 const base::string16& network_id) OVERRIDE; | 45 const base::string16& network_id) OVERRIDE; |
| 47 virtual void EnableContinue(bool enabled) OVERRIDE; | 46 virtual void EnableContinue(bool enabled) OVERRIDE; |
| 48 | 47 |
| 49 // BaseScreenHandler implementation: | 48 // BaseScreenHandler implementation: |
| 50 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; | 49 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; |
| 51 virtual void GetAdditionalParameters(base::DictionaryValue* dict) OVERRIDE; | 50 virtual void GetAdditionalParameters(base::DictionaryValue* dict) OVERRIDE; |
| 52 virtual void Initialize() OVERRIDE; | 51 virtual void Initialize() OVERRIDE; |
| 53 | 52 |
| 54 // WebUIMessageHandler implementation: | 53 // WebUIMessageHandler implementation: |
| 55 virtual void RegisterMessages() OVERRIDE; | 54 virtual void RegisterMessages() OVERRIDE; |
| 56 | 55 |
| 57 // ComponentExtensionIMEManager::Observer implementation: | |
| 58 virtual void OnImeComponentExtensionInitialized() OVERRIDE; | |
| 59 | |
| 60 // InputMethodManager::Observer implementation: | 56 // InputMethodManager::Observer implementation: |
| 61 virtual void InputMethodChanged(input_method::InputMethodManager* manager, | 57 virtual void InputMethodChanged(input_method::InputMethodManager* manager, |
| 62 bool show_message) OVERRIDE; | 58 bool show_message) OVERRIDE; |
| 63 | 59 |
| 64 // Registers the preference for derelict state. | 60 // Registers the preference for derelict state. |
| 65 static void RegisterPrefs(PrefRegistrySimple* registry); | 61 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 66 | 62 |
| 67 // Reloads localized contents. | 63 // Reloads localized contents. |
| 68 void ReloadLocalizedContent(); | 64 void ReloadLocalizedContent(); |
| 69 | 65 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 std::string selected_language_code_; | 118 std::string selected_language_code_; |
| 123 | 119 |
| 124 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; | 120 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; |
| 125 | 121 |
| 126 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); | 122 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); |
| 127 }; | 123 }; |
| 128 | 124 |
| 129 } // namespace chromeos | 125 } // namespace chromeos |
| 130 | 126 |
| 131 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ | 127 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ |
| OLD | NEW |