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

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

Issue 2289643003: ChromeOS: Fix "continue OOBE on restart" functionality. (Closed)
Patch Set: Created 4 years, 3 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 const std::string& display_type() const { return display_type_; } 147 const std::string& display_type() const { return display_type_; }
148 148
149 SigninScreenHandler* signin_screen_handler_for_test() { 149 SigninScreenHandler* signin_screen_handler_for_test() {
150 return signin_screen_handler_; 150 return signin_screen_handler_;
151 } 151 }
152 152
153 NetworkStateInformer* network_state_informer_for_test() const { 153 NetworkStateInformer* network_state_informer_for_test() const {
154 return network_state_informer_.get(); 154 return network_state_informer_.get();
155 } 155 }
156 156
157 // This call enables polymer-based UI.
158 void EnableMdOobe();
159
160 private: 157 private:
161 void AddScreenHandler(BaseScreenHandler* handler); 158 void AddScreenHandler(BaseScreenHandler* handler);
162 159
163 // CoreOobeHandler::Delegate implementation: 160 // CoreOobeHandler::Delegate implementation:
164 void OnCurrentScreenChanged(const std::string& screen) override; 161 void OnCurrentScreenChanged(const std::string& screen) override;
165 162
166 // Type of UI. 163 // Type of UI.
167 std::string display_type_; 164 std::string display_type_;
168 165
169 // Reference to NetworkStateInformer that handles changes in network 166 // Reference to NetworkStateInformer that handles changes in network
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 231
235 // Callbacks to notify when JS part is fully loaded and ready to accept calls. 232 // Callbacks to notify when JS part is fully loaded and ready to accept calls.
236 std::vector<base::Closure> ready_callbacks_; 233 std::vector<base::Closure> ready_callbacks_;
237 234
238 // List of registered observers. 235 // List of registered observers.
239 base::ObserverList<Observer> observer_list_; 236 base::ObserverList<Observer> observer_list_;
240 237
241 // Observer of CrosSettings watching the kRebootOnShutdown policy. 238 // Observer of CrosSettings watching the kRebootOnShutdown policy.
242 std::unique_ptr<ShutdownPolicyHandler> shutdown_policy_handler_; 239 std::unique_ptr<ShutdownPolicyHandler> shutdown_policy_handler_;
243 240
244 // This controls displaying of polymer-based OOBE UI.
245 bool md_oobe_enabled_ = false;
246
247 DISALLOW_COPY_AND_ASSIGN(OobeUI); 241 DISALLOW_COPY_AND_ASSIGN(OobeUI);
248 }; 242 };
249 243
250 } // namespace chromeos 244 } // namespace chromeos
251 245
252 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ 246 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chrome/browser/ui/webui/chromeos/login/oobe_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698