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

Side by Side Diff: chrome/browser/chromeos/login/views_network_screen_actor.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
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_CHROMEOS_LOGIN_VIEWS_NETWORK_SCREEN_ACTOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_VIEWS_NETWORK_SCREEN_ACTOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_VIEWS_NETWORK_SCREEN_ACTOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_VIEWS_NETWORK_SCREEN_ACTOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 29 matching lines...) Expand all
40 virtual void PrepareToShow(); 40 virtual void PrepareToShow();
41 virtual void Show(); 41 virtual void Show();
42 virtual void Hide(); 42 virtual void Hide();
43 virtual gfx::Size GetScreenSize() const; 43 virtual gfx::Size GetScreenSize() const;
44 virtual void ShowError(const string16& message); 44 virtual void ShowError(const string16& message);
45 virtual void ClearErrors(); 45 virtual void ClearErrors();
46 virtual void ShowConnectingStatus( 46 virtual void ShowConnectingStatus(
47 bool connecting, 47 bool connecting,
48 const string16& network_id); 48 const string16& network_id);
49 virtual void EnableContinue(bool enabled); 49 virtual void EnableContinue(bool enabled);
50 virtual bool IsContinueEnabled() const;
51 virtual bool IsConnecting() const;
52 50
53 // views::ButtonListener implementation: 51 // views::ButtonListener implementation:
54 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 52 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
55 53
56 // Returns true if a bubble with error is shown currently to the user. 54 // Returns true if a bubble with error is shown currently to the user.
57 bool IsErrorShown() const; 55 bool IsErrorShown() const;
58 56
59 // TODO(avayvod): Get rid of the dependency on the menus by moving it 57 // TODO(avayvod): Get rid of the dependency on the menus by moving it
60 // either to the view or here. 58 // either to the view or here.
61 LanguageSwitchMenu* language_switch_menu() { 59 LanguageSwitchMenu* language_switch_menu() {
62 return &language_switch_menu_; 60 return &language_switch_menu_;
63 } 61 }
64 62
65 KeyboardSwitchMenu* keyboard_switch_menu() { 63 KeyboardSwitchMenu* keyboard_switch_menu() {
66 return &keyboard_switch_menu_; 64 return &keyboard_switch_menu_;
67 } 65 }
68 66
67 // For tests.
68 virtual bool IsContinueEnabled() const;
69 virtual bool IsConnecting() const;
70
69 private: 71 private:
70 // Overridden views::BubbleDelegate. 72 // Overridden views::BubbleDelegate.
71 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape); 73 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape);
72 virtual bool CloseOnEscape(); 74 virtual bool CloseOnEscape();
73 virtual bool FadeInOnShow(); 75 virtual bool FadeInOnShow();
74 virtual void OnHelpLinkActivated(); 76 virtual void OnHelpLinkActivated();
75 77
76 // ViewScreen implementation: 78 // ViewScreen implementation:
77 virtual void CreateView(); 79 virtual void CreateView();
78 virtual NetworkSelectionView* AllocateView(); 80 virtual NetworkSelectionView* AllocateView();
(...skipping 10 matching lines...) Expand all
89 91
90 // Listener for continue button to be pressed. 92 // Listener for continue button to be pressed.
91 Delegate* screen_; 93 Delegate* screen_;
92 94
93 DISALLOW_COPY_AND_ASSIGN(ViewsNetworkScreenActor); 95 DISALLOW_COPY_AND_ASSIGN(ViewsNetworkScreenActor);
94 }; 96 };
95 97
96 } // namespace chromeos 98 } // namespace chromeos
97 99
98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VIEWS_NETWORK_SCREEN_ACTOR_H_ 100 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_VIEWS_NETWORK_SCREEN_ACTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698