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

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

Issue 2281813002: ChromeOS: Restrict material-design OOBE to compatible devices only. (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
157 private: 160 private:
158 void AddScreenHandler(BaseScreenHandler* handler); 161 void AddScreenHandler(BaseScreenHandler* handler);
159 162
160 // CoreOobeHandler::Delegate implementation: 163 // CoreOobeHandler::Delegate implementation:
161 void OnCurrentScreenChanged(const std::string& screen) override; 164 void OnCurrentScreenChanged(const std::string& screen) override;
162 165
163 // Type of UI. 166 // Type of UI.
164 std::string display_type_; 167 std::string display_type_;
165 168
166 // Reference to NetworkStateInformer that handles changes in network 169 // Reference to NetworkStateInformer that handles changes in network
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 234
232 // Callbacks to notify when JS part is fully loaded and ready to accept calls. 235 // Callbacks to notify when JS part is fully loaded and ready to accept calls.
233 std::vector<base::Closure> ready_callbacks_; 236 std::vector<base::Closure> ready_callbacks_;
234 237
235 // List of registered observers. 238 // List of registered observers.
236 base::ObserverList<Observer> observer_list_; 239 base::ObserverList<Observer> observer_list_;
237 240
238 // Observer of CrosSettings watching the kRebootOnShutdown policy. 241 // Observer of CrosSettings watching the kRebootOnShutdown policy.
239 std::unique_ptr<ShutdownPolicyHandler> shutdown_policy_handler_; 242 std::unique_ptr<ShutdownPolicyHandler> shutdown_policy_handler_;
240 243
244 // This controls displaying of polymer-based OOBE UI.
245 bool md_oobe_enabled_ = false;
246
241 DISALLOW_COPY_AND_ASSIGN(OobeUI); 247 DISALLOW_COPY_AND_ASSIGN(OobeUI);
242 }; 248 };
243 249
244 } // namespace chromeos 250 } // namespace chromeos
245 251
246 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ 252 #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