| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 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/oobe_ui.h" | 10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| 11 #include "content/browser/webui/web_ui.h" | 11 #include "content/browser/webui/web_ui.h" |
| 12 #include "ui/gfx/point.h" | 12 #include "ui/gfx/point.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class ListValue; | 15 class ListValue; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace views { | 18 namespace views { |
| 19 class Widget; | 19 class Widget; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace chromeos { | 22 namespace chromeos { |
| 23 | 23 |
| 24 // WebUI implementation of NetworkScreenActor. It is used to interact with | 24 // WebUI implementation of NetworkScreenActor. It is used to interact with |
| 25 // the welcome screen (part of the page) of the OOBE. | 25 // the welcome screen (part of the page) of the OOBE. |
| 26 class NetworkScreenHandler : public NetworkScreenActor, | 26 class NetworkScreenHandler : public NetworkScreenActor, |
| 27 public OobeMessageHandler { | 27 public BaseScreenHandler { |
| 28 public: | 28 public: |
| 29 NetworkScreenHandler(); | 29 NetworkScreenHandler(); |
| 30 virtual ~NetworkScreenHandler(); | 30 virtual ~NetworkScreenHandler(); |
| 31 | 31 |
| 32 // NetworkScreenActor implementation: | 32 // NetworkScreenActor implementation: |
| 33 virtual void SetDelegate(NetworkScreenActor::Delegate* screen); | 33 virtual void SetDelegate(NetworkScreenActor::Delegate* screen); |
| 34 virtual void PrepareToShow(); | 34 virtual void PrepareToShow(); |
| 35 virtual void Show(); | 35 virtual void Show(); |
| 36 virtual void Hide(); | 36 virtual void Hide(); |
| 37 virtual void ShowError(const string16& message); | 37 virtual void ShowError(const string16& message); |
| 38 virtual void ClearErrors(); | 38 virtual void ClearErrors(); |
| 39 virtual void ShowConnectingStatus(bool connecting, | 39 virtual void ShowConnectingStatus(bool connecting, |
| 40 const string16& network_id); | 40 const string16& network_id); |
| 41 virtual void EnableContinue(bool enabled); | 41 virtual void EnableContinue(bool enabled); |
| 42 | 42 |
| 43 // OobeMessageHandler implementation: | 43 // BaseScreenHandler implementation: |
| 44 virtual void GetLocalizedStrings(base::DictionaryValue* localized_strings); | 44 virtual void GetLocalizedStrings(base::DictionaryValue* localized_strings); |
| 45 virtual void Initialize(); | 45 virtual void Initialize(); |
| 46 | 46 |
| 47 // WebUIMessageHandler implementation: | 47 // WebUIMessageHandler implementation: |
| 48 virtual void RegisterMessages(); | 48 virtual void RegisterMessages(); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 // Handles change of the network control position. | 51 // Handles change of the network control position. |
| 52 void HandleNetworkControlPosition(const base::ListValue* args); | 52 void HandleNetworkControlPosition(const base::ListValue* args); |
| 53 | 53 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 // Position of the network control. | 89 // Position of the network control. |
| 90 gfx::Point network_control_pos_; | 90 gfx::Point network_control_pos_; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); | 92 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace chromeos | 95 } // namespace chromeos |
| 96 | 96 |
| 97 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ | 97 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ |
| OLD | NEW |