Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/network_screen_handler.h

Issue 389913002: Moving IME manifests to chrome resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Keeps whether screen should be shown right after initialization. 105 // Keeps whether screen should be shown right after initialization.
110 bool show_on_init_; 106 bool show_on_init_;
111 107
112 // Position of the network control. 108 // Position of the network control.
113 gfx::Point network_control_pos_; 109 gfx::Point network_control_pos_;
114 110
115 scoped_ptr<CrosSettings::ObserverSubscription> timezone_subscription_; 111 scoped_ptr<CrosSettings::ObserverSubscription> timezone_subscription_;
116 112
117 // True if should reinitialize language and keyboard list once the page 113 // True if should reinitialize language and keyboard list once the page
118 // is ready. 114 // is ready.
119 bool should_reinitialize_language_keyboard_list_; 115 bool should_reinitialize_language_keyboard_list_;
Alexander Alekseev 2014/07/14 14:07:29 Unused?
Shu Chen 2014/07/14 15:07:21 Done.
120 116
121 // The exact language code selected by user in the menu. 117 // The exact language code selected by user in the menu.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698