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

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

Issue 7121013: Initial implementation of network screen WebUI handler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile Created 9 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef 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
8
9 #include "chrome/browser/chromeos/login/network_screen_actor.h"
10 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
11 #include "content/browser/webui/web_ui.h"
12
13 class ListValue;
14
15 namespace chromeos {
16
17 // WebUI implementation of NetworkScreenActor. It is used to interact with
18 // the welcome screen (part of the page) of the OOBE.
19 class NetworkScreenHandler : public NetworkScreenActor,
20 public OobeMessageHandler {
21 public:
22 NetworkScreenHandler();
23 virtual ~NetworkScreenHandler();
24
25 // NetworkScreenActor implementation:
26 virtual void SetDelegate(NetworkScreenActor::Delegate* screen);
27 virtual void PrepareToShow();
28 virtual void Show();
29 virtual void Hide();
30 virtual void ShowError(const string16& message);
31 virtual void ClearErrors();
32 virtual void ShowConnectingStatus(bool connecting,
33 const string16& network_id);
34 virtual void EnableContinue(bool enabled);
35
36 // OobeMessageHandler implementation:
37 virtual void GetLocalizedSettings(DictionaryValue* localized_strings);
38 virtual void Initialize();
39
40 // WebUIMessageHandler implementation:
41 virtual void RegisterMessages();
42
43 private:
44 // Handles moving off the screen.
45 void OnExit(const ListValue* args);
46
47 NetworkScreenActor::Delegate* screen_;
48
49 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler);
50 };
51
52 } // namespace chromeos
53
54 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698