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

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

Issue 381833002: Move demo mode preference registration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | Annotate | Revision Log
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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/chromeos/login/screens/network_screen_actor.h" 12 #include "chrome/browser/chromeos/login/screens/network_screen_actor.h"
13 #include "chrome/browser/chromeos/settings/cros_settings.h" 13 #include "chrome/browser/chromeos/settings/cros_settings.h"
14 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 14 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
15 #include "chromeos/ime/component_extension_ime_manager.h" 15 #include "chromeos/ime/component_extension_ime_manager.h"
16 #include "chromeos/ime/input_method_manager.h" 16 #include "chromeos/ime/input_method_manager.h"
17 #include "ui/gfx/point.h" 17 #include "ui/gfx/point.h"
18 18
19 class PrefRegistrySimple;
20
21 namespace chromeos { 19 namespace chromeos {
22 20
23 class CoreOobeActor; 21 class CoreOobeActor;
24 class IdleDetector; 22 class IdleDetector;
25 23
26 struct NetworkScreenHandlerOnLanguageChangedCallbackData; 24 struct NetworkScreenHandlerOnLanguageChangedCallbackData;
27 25
28 // WebUI implementation of NetworkScreenActor. It is used to interact with 26 // WebUI implementation of NetworkScreenActor. It is used to interact with
29 // the welcome screen (part of the page) of the OOBE. 27 // the welcome screen (part of the page) of the OOBE.
30 class NetworkScreenHandler : public NetworkScreenActor, 28 class NetworkScreenHandler : public NetworkScreenActor,
(...skipping 23 matching lines...) Expand all
54 // WebUIMessageHandler implementation: 52 // WebUIMessageHandler implementation:
55 virtual void RegisterMessages() OVERRIDE; 53 virtual void RegisterMessages() OVERRIDE;
56 54
57 // ComponentExtensionIMEManager::Observer implementation: 55 // ComponentExtensionIMEManager::Observer implementation:
58 virtual void OnImeComponentExtensionInitialized() OVERRIDE; 56 virtual void OnImeComponentExtensionInitialized() OVERRIDE;
59 57
60 // InputMethodManager::Observer implementation: 58 // InputMethodManager::Observer implementation:
61 virtual void InputMethodChanged(input_method::InputMethodManager* manager, 59 virtual void InputMethodChanged(input_method::InputMethodManager* manager,
62 bool show_message) OVERRIDE; 60 bool show_message) OVERRIDE;
63 61
64 // Registers the preference for derelict state.
65 static void RegisterPrefs(PrefRegistrySimple* registry);
66
67 // Reloads localized contents. 62 // Reloads localized contents.
68 void ReloadLocalizedContent(); 63 void ReloadLocalizedContent();
69 64
70 private: 65 private:
71 // Handles moving off the screen. 66 // Handles moving off the screen.
72 void HandleOnExit(); 67 void HandleOnExit();
73 68
74 // Handles change of the language. 69 // Handles change of the language.
75 void HandleOnLanguageChanged(const std::string& locale); 70 void HandleOnLanguageChanged(const std::string& locale);
76 71
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 std::string selected_language_code_; 117 std::string selected_language_code_;
123 118
124 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; 119 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_;
125 120
126 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); 121 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler);
127 }; 122 };
128 123
129 } // namespace chromeos 124 } // namespace chromeos
130 125
131 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ 126 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698