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

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

Issue 2332893002: Changes ownership of ScreenDimmer (Closed)
Patch Set: merge to tot 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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h" 17 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h"
18 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h" 18 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h"
19 #include "chrome/browser/ui/webui/chromeos/login/oobe_screen.h" 19 #include "chrome/browser/ui/webui/chromeos/login/oobe_screen.h"
20 #include "content/public/browser/web_ui_controller.h" 20 #include "content/public/browser/web_ui_controller.h"
21 21
22 namespace ash {
23 class ScreenDimmer;
24 }
25
22 namespace base { 26 namespace base {
23 class DictionaryValue; 27 class DictionaryValue;
24 } // namespace base 28 } // namespace base
25 29
26 namespace chromeos { 30 namespace chromeos {
27 class AppLaunchSplashScreenActor; 31 class AppLaunchSplashScreenActor;
28 class AutoEnrollmentCheckScreenActor; 32 class AutoEnrollmentCheckScreenActor;
29 class BaseScreenHandler; 33 class BaseScreenHandler;
30 class ControllerPairingScreenActor; 34 class ControllerPairingScreenActor;
31 class CoreOobeActor; 35 class CoreOobeActor;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 235
232 // Callbacks to notify when JS part is fully loaded and ready to accept calls. 236 // Callbacks to notify when JS part is fully loaded and ready to accept calls.
233 std::vector<base::Closure> ready_callbacks_; 237 std::vector<base::Closure> ready_callbacks_;
234 238
235 // List of registered observers. 239 // List of registered observers.
236 base::ObserverList<Observer> observer_list_; 240 base::ObserverList<Observer> observer_list_;
237 241
238 // Observer of CrosSettings watching the kRebootOnShutdown policy. 242 // Observer of CrosSettings watching the kRebootOnShutdown policy.
239 std::unique_ptr<ShutdownPolicyHandler> shutdown_policy_handler_; 243 std::unique_ptr<ShutdownPolicyHandler> shutdown_policy_handler_;
240 244
245 std::unique_ptr<ash::ScreenDimmer> screen_dimmer_;
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

Powered by Google App Engine
This is Rietveld 408576698