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

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

Issue 8585031: [cros, Aura] Make screen_mode static variable in StatusAreaViewChromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years 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 <string> 9 #include <string>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // Overridden from LoginHtmlDialog::Delegate: 111 // Overridden from LoginHtmlDialog::Delegate:
112 virtual void OnDialogClosed() OVERRIDE {} 112 virtual void OnDialogClosed() OVERRIDE {}
113 113
114 // Overridden from VersionInfoUpdater::Delegate: 114 // Overridden from VersionInfoUpdater::Delegate:
115 virtual void OnOSVersionLabelTextUpdated( 115 virtual void OnOSVersionLabelTextUpdated(
116 const std::string& os_version_label_text) OVERRIDE; 116 const std::string& os_version_label_text) OVERRIDE;
117 virtual void OnBootTimesLabelTextUpdated( 117 virtual void OnBootTimesLabelTextUpdated(
118 const std::string& boot_times_label_text) OVERRIDE; 118 const std::string& boot_times_label_text) OVERRIDE;
119 119
120 void set_screen_mode(StatusAreaViewChromeos::ScreenMode mode) {
121 screen_mode_ = mode;
122 }
123
124 private: 120 private:
125 // Creates and adds the status_area. 121 // Creates and adds the status_area.
126 void InitStatusArea(); 122 void InitStatusArea();
127 // Creates and adds the labels for version and boot time. 123 // Creates and adds the labels for version and boot time.
128 void InitInfoLabels(); 124 void InitInfoLabels();
129 125
130 // Invokes SetWindowType for the window. This is invoked during startup and 126 // Invokes SetWindowType for the window. This is invoked during startup and
131 // after we've painted. 127 // after we've painted.
132 void UpdateWindowType(); 128 void UpdateWindowType();
133 129
134 // All of these variables could be NULL. 130 // All of these variables could be NULL.
135 StatusAreaViewChromeos* status_area_; 131 StatusAreaViewChromeos* status_area_;
136 StatusAreaViewChromeos::ScreenMode screen_mode_;
137 views::Label* os_version_label_; 132 views::Label* os_version_label_;
138 views::Label* boot_times_label_; 133 views::Label* boot_times_label_;
139 ShutdownButton* shutdown_button_; 134 ShutdownButton* shutdown_button_;
140 135
141 // True if running official BUILD. 136 // True if running official BUILD.
142 bool is_official_build_; 137 bool is_official_build_;
143 138
144 // DOMView for rendering a webpage as a background. 139 // DOMView for rendering a webpage as a background.
145 DOMView* background_area_; 140 DOMView* background_area_;
146 141
147 // Proxy settings dialog that can be invoked from network menu. 142 // Proxy settings dialog that can be invoked from network menu.
148 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; 143 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_;
149 144
150 // Updates version info. 145 // Updates version info.
151 VersionInfoUpdater version_info_updater_; 146 VersionInfoUpdater version_info_updater_;
152 147
153 DISALLOW_COPY_AND_ASSIGN(BackgroundView); 148 DISALLOW_COPY_AND_ASSIGN(BackgroundView);
154 }; 149 };
155 150
156 } // namespace chromeos 151 } // namespace chromeos
157 152
158 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ 153 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/frame/browser_view.cc ('k') | chrome/browser/chromeos/login/background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698