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

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

Issue 2600983003: ChromeOS MD-OOBE: Add HID detection screen. (Closed)
Patch Set: Rebased. Created 3 years, 11 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
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_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 const std::string& display_type() const { return display_type_; } 152 const std::string& display_type() const { return display_type_; }
153 153
154 SigninScreenHandler* signin_screen_handler_for_test() { 154 SigninScreenHandler* signin_screen_handler_for_test() {
155 return signin_screen_handler_; 155 return signin_screen_handler_;
156 } 156 }
157 157
158 NetworkStateInformer* network_state_informer_for_test() const { 158 NetworkStateInformer* network_state_informer_for_test() const {
159 return network_state_informer_.get(); 159 return network_state_informer_.get();
160 } 160 }
161 161
162 // Does ReloadContent() if needed (for example, if material design mode has
163 // changed).
164 void UpdateLocalizedStringsIfNeeded();
165
162 private: 166 private:
163 void AddScreenHandler(std::unique_ptr<BaseScreenHandler> handler); 167 void AddScreenHandler(std::unique_ptr<BaseScreenHandler> handler);
164 168
165 // CoreOobeHandler::Delegate implementation: 169 // CoreOobeHandler::Delegate implementation:
166 void OnCurrentScreenChanged(OobeScreen screen) override; 170 void OnCurrentScreenChanged(OobeScreen screen) override;
167 171
168 // Type of UI. 172 // Type of UI.
169 std::string display_type_; 173 std::string display_type_;
170 174
171 // Reference to NetworkStateInformer that handles changes in network 175 // Reference to NetworkStateInformer that handles changes in network
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // Id of the current oobe/login screen. 232 // Id of the current oobe/login screen.
229 OobeScreen current_screen_ = OobeScreen::SCREEN_UNKNOWN; 233 OobeScreen current_screen_ = OobeScreen::SCREEN_UNKNOWN;
230 234
231 // Id of the previous oobe/login screen. 235 // Id of the previous oobe/login screen.
232 OobeScreen previous_screen_ = OobeScreen::SCREEN_UNKNOWN; 236 OobeScreen previous_screen_ = OobeScreen::SCREEN_UNKNOWN;
233 237
234 // Flag that indicates whether JS part is fully loaded and ready to accept 238 // Flag that indicates whether JS part is fully loaded and ready to accept
235 // calls. 239 // calls.
236 bool ready_ = false; 240 bool ready_ = false;
237 241
242 // This flag stores material-design mode (on/off) of currently displayed UI.
243 // If different version of UI is required, UI is updated.
244 bool oobe_ui_md_mode_ = false;
245
238 // Callbacks to notify when JS part is fully loaded and ready to accept calls. 246 // Callbacks to notify when JS part is fully loaded and ready to accept calls.
239 std::vector<base::Closure> ready_callbacks_; 247 std::vector<base::Closure> ready_callbacks_;
240 248
241 // List of registered observers. 249 // List of registered observers.
242 base::ObserverList<Observer> observer_list_; 250 base::ObserverList<Observer> observer_list_;
243 251
244 // Observer of CrosSettings watching the kRebootOnShutdown policy. 252 // Observer of CrosSettings watching the kRebootOnShutdown policy.
245 std::unique_ptr<ShutdownPolicyHandler> shutdown_policy_handler_; 253 std::unique_ptr<ShutdownPolicyHandler> shutdown_policy_handler_;
246 254
247 std::unique_ptr<ash::ScreenDimmer> screen_dimmer_; 255 std::unique_ptr<ash::ScreenDimmer> screen_dimmer_;
248 256
249 DISALLOW_COPY_AND_ASSIGN(OobeUI); 257 DISALLOW_COPY_AND_ASSIGN(OobeUI);
250 }; 258 };
251 259
252 } // namespace chromeos 260 } // namespace chromeos
253 261
254 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ 262 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698