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

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 browser tests 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(
altimofeev 2011/06/07 17:02:22 nit: you can place it using only 2 lines
whywhat 2011/06/07 17:24:52 Done.
33 bool connecting,
34 const string16& network_id);
35 virtual void EnableContinue(bool enabled);
36
37 // OobeMessageHandler implementation:
38 virtual void GetLocalizedSettings(DictionaryValue* localized_strings);
39 virtual void Initialize();
40
41 // WebUIMessageHandler implementation:
42 virtual void RegisterMessages();
43
44 private:
45 // Handles moving off the screen.
46 void OnExit(const ListValue* args);
47
48 NetworkScreenActor::Delegate* screen_;
49
50 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler);
51 };
52
53 } // namespace chromeos
54
55 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698