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

Side by Side Diff: chrome/browser/chromeos/login/background_view.h

Issue 8436002: [cros] Remove Views implementation for login/OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 1 month 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_BACKGROUND_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/login/login_html_dialog.h" 9 #include "chrome/browser/chromeos/login/login_html_dialog.h"
10 #include "chrome/browser/chromeos/login/version_info_updater.h" 10 #include "chrome/browser/chromeos/login/version_info_updater.h"
11 #include "chrome/browser/chromeos/status/status_area_button.h" 11 #include "chrome/browser/chromeos/status/status_area_button.h"
12 #include "chrome/browser/chromeos/status/status_area_view_chromeos.h" 12 #include "chrome/browser/chromeos/status/status_area_view_chromeos.h"
13 #include "views/view.h" 13 #include "views/view.h"
14 14
15 namespace views { 15 namespace views {
16 class Label; 16 class Label;
17 class TextButton; 17 class TextButton;
18 class Widget; 18 class Widget;
19 class WidgetDelegate; 19 class WidgetDelegate;
20 } 20 }
21 21
22 class DOMView; 22 class DOMView;
23 class GURL; 23 class GURL;
24 class Profile; 24 class Profile;
25 25
26 namespace chromeos { 26 namespace chromeos {
27 27
28 class OobeProgressBar;
29 class ShutdownButton; 28 class ShutdownButton;
30 29
31 // View used to render the background during login. BackgroundView contains 30 // View used to render the background during login. BackgroundView contains
32 // StatusAreaView. 31 // StatusAreaView.
33 class BackgroundView : public views::View, 32 class BackgroundView : public views::View,
34 public StatusAreaButton::Delegate, 33 public StatusAreaButton::Delegate,
35 public LoginHtmlDialog::Delegate, 34 public LoginHtmlDialog::Delegate,
36 public VersionInfoUpdater::Delegate { 35 public VersionInfoUpdater::Delegate {
37 public: 36 public:
38 enum LoginStep { 37 enum LoginStep {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 69
71 // Gets the native window from the view widget. 70 // Gets the native window from the view widget.
72 gfx::NativeWindow GetNativeWindow() const; 71 gfx::NativeWindow GetNativeWindow() const;
73 72
74 // Toggles status area visibility. 73 // Toggles status area visibility.
75 void SetStatusAreaVisible(bool visible); 74 void SetStatusAreaVisible(bool visible);
76 75
77 // Toggles whether status area is enabled. 76 // Toggles whether status area is enabled.
78 void SetStatusAreaEnabled(bool enable); 77 void SetStatusAreaEnabled(bool enable);
79 78
80 // Toggles OOBE progress bar visibility, the bar is hidden by default.
81 void SetOobeProgressBarVisible(bool visible);
82
83 // Gets progress bar visibility.
84 bool IsOobeProgressBarVisible();
85
86 // Sets current step on OOBE progress bar.
87 void SetOobeProgress(LoginStep step);
88
89 // Shows screen saver. 79 // Shows screen saver.
90 void ShowScreenSaver(); 80 void ShowScreenSaver();
91 81
92 // Hides screen saver. 82 // Hides screen saver.
93 void HideScreenSaver(); 83 void HideScreenSaver();
94 84
95 // Tells if screen saver is visible. 85 // Tells if screen saver is visible.
96 bool IsScreenSaverVisible(); 86 bool IsScreenSaverVisible();
97 87
98 // Tells if screen saver is enabled. 88 // Tells if screen saver is enabled.
(...skipping 30 matching lines...) Expand all
129 119
130 void set_screen_mode(StatusAreaViewChromeos::ScreenMode mode) { 120 void set_screen_mode(StatusAreaViewChromeos::ScreenMode mode) {
131 screen_mode_ = mode; 121 screen_mode_ = mode;
132 } 122 }
133 123
134 private: 124 private:
135 // Creates and adds the status_area. 125 // Creates and adds the status_area.
136 void InitStatusArea(); 126 void InitStatusArea();
137 // Creates and adds the labels for version and boot time. 127 // Creates and adds the labels for version and boot time.
138 void InitInfoLabels(); 128 void InitInfoLabels();
139 // Creates and add OOBE progress bar.
140 void InitProgressBar();
141 129
142 // Invokes SetWindowType for the window. This is invoked during startup and 130 // Invokes SetWindowType for the window. This is invoked during startup and
143 // after we've painted. 131 // after we've painted.
144 void UpdateWindowType(); 132 void UpdateWindowType();
145 133
146 // All of these variables could be NULL. 134 // All of these variables could be NULL.
147 StatusAreaViewChromeos* status_area_; 135 StatusAreaViewChromeos* status_area_;
148 StatusAreaViewChromeos::ScreenMode screen_mode_; 136 StatusAreaViewChromeos::ScreenMode screen_mode_;
149 views::Label* os_version_label_; 137 views::Label* os_version_label_;
150 views::Label* boot_times_label_; 138 views::Label* boot_times_label_;
151 OobeProgressBar* progress_bar_;
152 ShutdownButton* shutdown_button_; 139 ShutdownButton* shutdown_button_;
153 140
154 // True if running official BUILD. 141 // True if running official BUILD.
155 bool is_official_build_; 142 bool is_official_build_;
156 143
157 // DOMView for rendering a webpage as a background. 144 // DOMView for rendering a webpage as a background.
158 DOMView* background_area_; 145 DOMView* background_area_;
159 146
160 // Proxy settings dialog that can be invoked from network menu. 147 // Proxy settings dialog that can be invoked from network menu.
161 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; 148 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_;
162 149
163 // Updates version info. 150 // Updates version info.
164 VersionInfoUpdater version_info_updater_; 151 VersionInfoUpdater version_info_updater_;
165 152
166 DISALLOW_COPY_AND_ASSIGN(BackgroundView); 153 DISALLOW_COPY_AND_ASSIGN(BackgroundView);
167 }; 154 };
168 155
169 } // namespace chromeos 156 } // namespace chromeos
170 157
171 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ 158 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dbus/mock_dbus_thread_manager.cc ('k') | chrome/browser/chromeos/login/background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698