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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/chromeos/login/network_screen_actor.h" | 9 #include "chrome/browser/chromeos/login/network_screen_actor.h" |
10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
(...skipping 27 matching lines...) Expand all Loading... | |
38 // BaseScreenHandler implementation: | 38 // BaseScreenHandler implementation: |
39 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; | 39 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; |
40 virtual void GetAdditionalParameters(base::DictionaryValue* dict) OVERRIDE; | 40 virtual void GetAdditionalParameters(base::DictionaryValue* dict) OVERRIDE; |
41 virtual void Initialize() OVERRIDE; | 41 virtual void Initialize() OVERRIDE; |
42 | 42 |
43 // WebUIMessageHandler implementation: | 43 // WebUIMessageHandler implementation: |
44 virtual void RegisterMessages() OVERRIDE; | 44 virtual void RegisterMessages() OVERRIDE; |
45 | 45 |
46 private: | 46 private: |
47 // Handles moving off the screen. | 47 // Handles moving off the screen. |
48 void HandleOnExit(const base::ListValue* args); | 48 void HandleOnExit(); |
49 | 49 |
50 // Handles change of the language. | 50 // Handles change of the language. |
51 void HandleOnLanguageChanged(const base::ListValue* args); | 51 void HandleOnLanguageChanged(const std::string& locale); |
bartfab (slow)
2013/04/16 17:04:35
#include <string>
ygorshenin1
2013/04/16 17:52:43
Done.
| |
52 | 52 |
53 // Handles change of the input method. | 53 // Handles change of the input method. |
54 void HandleOnInputMethodChanged(const base::ListValue* args); | 54 void HandleOnInputMethodChanged(const std::string& id); |
55 | 55 |
56 // Returns available languages. Caller gets the ownership. Note, it does | 56 // Returns available languages. Caller gets the ownership. Note, it does |
57 // depend on the current locale. | 57 // depend on the current locale. |
58 static base::ListValue* GetLanguageList(); | 58 static base::ListValue* GetLanguageList(); |
59 | 59 |
60 // Returns available input methods. Caller gets the ownership. Note, it does | 60 // Returns available input methods. Caller gets the ownership. Note, it does |
61 // depend on the current locale. | 61 // depend on the current locale. |
62 static base::ListValue* GetInputMethods(); | 62 static base::ListValue* GetInputMethods(); |
63 | 63 |
64 NetworkScreenActor::Delegate* screen_; | 64 NetworkScreenActor::Delegate* screen_; |
65 | 65 |
66 bool is_continue_enabled_; | 66 bool is_continue_enabled_; |
67 | 67 |
68 // Keeps whether screen should be shown right after initialization. | 68 // Keeps whether screen should be shown right after initialization. |
69 bool show_on_init_; | 69 bool show_on_init_; |
70 | 70 |
71 // Position of the network control. | 71 // Position of the network control. |
72 gfx::Point network_control_pos_; | 72 gfx::Point network_control_pos_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); | 74 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace chromeos | 77 } // namespace chromeos |
78 | 78 |
79 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ | 79 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ |
OLD | NEW |