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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_
10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/chromeos/base/locale_util.h"
13 #include "chrome/browser/chromeos/login/screens/network_view.h"
14 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
15 #include "ui/base/ime/chromeos/component_extension_ime_manager.h"
16 #include "ui/base/ime/chromeos/input_method_manager.h"
17 #include "ui/gfx/geometry/point.h"
23 class InputEventsBlocker
;
25 // WebUI implementation of NetworkScreenActor. It is used to interact with
26 // the welcome screen (part of the page) of the OOBE.
27 class NetworkScreenHandler
: public NetworkView
, public BaseScreenHandler
{
29 explicit NetworkScreenHandler(CoreOobeActor
* core_oobe_actor
);
30 ~NetworkScreenHandler() override
;
33 // NetworkView implementation:
34 void PrepareToShow() override
;
37 void Bind(NetworkModel
& model
) override
;
38 void Unbind() override
;
39 void ShowError(const base::string16
& message
) override
;
40 void ClearErrors() override
;
41 void StopDemoModeDetection() override
;
42 void ShowConnectingStatus(bool connecting
,
43 const base::string16
& network_id
) override
;
44 void ReloadLocalizedContent() override
;
46 // BaseScreenHandler implementation:
47 void DeclareLocalizedValues(
48 ::login::LocalizedValuesBuilder
* builder
) override
;
49 void GetAdditionalParameters(base::DictionaryValue
* dict
) override
;
50 void Initialize() override
;
53 // Returns available timezones. Caller gets the ownership.
54 static base::ListValue
* GetTimezoneList();
56 CoreOobeActor
* core_oobe_actor_
;
59 // Keeps whether screen should be shown right after initialization.
62 // Position of the network control.
63 gfx::Point network_control_pos_
;
65 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler
);
68 } // namespace chromeos
70 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_