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

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

Issue 2839643002: Have OobeUI handle display observation (Closed)
Patch Set: And also remove the other leftover header Created 3 years, 8 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/login/oobe_screen.h" 17 #include "chrome/browser/chromeos/login/oobe_screen.h"
18 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h" 18 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h"
19 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 19 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
20 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h" 20 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h"
21 #include "content/public/browser/web_ui_controller.h" 21 #include "content/public/browser/web_ui_controller.h"
22 #include "ui/display/display_observer.h"
22 23
23 namespace ash { 24 namespace ash {
24 class ScreenDimmer; 25 class ScreenDimmer;
25 } 26 }
26 27
27 namespace base { 28 namespace base {
28 class DictionaryValue; 29 class DictionaryValue;
29 } // namespace base 30 } // namespace base
30 31
31 namespace chromeos { 32 namespace chromeos {
(...skipping 29 matching lines...) Expand all
61 class UserBoardView; 62 class UserBoardView;
62 class UserImageView; 63 class UserImageView;
63 class UpdateView; 64 class UpdateView;
64 class WrongHWIDScreenView; 65 class WrongHWIDScreenView;
65 66
66 // A custom WebUI that defines datasource for out-of-box-experience (OOBE) UI: 67 // A custom WebUI that defines datasource for out-of-box-experience (OOBE) UI:
67 // - welcome screen (setup language/keyboard/network). 68 // - welcome screen (setup language/keyboard/network).
68 // - eula screen (CrOS (+ OEM) EULA content/TPM password/crash reporting). 69 // - eula screen (CrOS (+ OEM) EULA content/TPM password/crash reporting).
69 // - update screen. 70 // - update screen.
70 class OobeUI : public content::WebUIController, 71 class OobeUI : public content::WebUIController,
72 public display::DisplayObserver,
71 public ShutdownPolicyHandler::Delegate { 73 public ShutdownPolicyHandler::Delegate {
72 public: 74 public:
73 // List of known types of OobeUI. Type added as path in chrome://oobe url, for 75 // List of known types of OobeUI. Type added as path in chrome://oobe url, for
74 // example chrome://oobe/user-adding. 76 // example chrome://oobe/user-adding.
75 static const char kOobeDisplay[]; 77 static const char kOobeDisplay[];
76 static const char kLoginDisplay[]; 78 static const char kLoginDisplay[];
77 static const char kLockDisplay[]; 79 static const char kLockDisplay[];
78 static const char kUserAddingDisplay[]; 80 static const char kUserAddingDisplay[];
79 static const char kAppLaunchSplashDisplay[]; 81 static const char kAppLaunchSplashDisplay[];
80 static const char kArcKioskSplashDisplay[]; 82 static const char kArcKioskSplashDisplay[];
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 AppLaunchSplashScreenView* GetAppLaunchSplashScreenView(); 114 AppLaunchSplashScreenView* GetAppLaunchSplashScreenView();
113 ArcKioskSplashScreenView* GetArcKioskSplashScreenView(); 115 ArcKioskSplashScreenView* GetArcKioskSplashScreenView();
114 HIDDetectionView* GetHIDDetectionView(); 116 HIDDetectionView* GetHIDDetectionView();
115 ControllerPairingScreenView* GetControllerPairingScreenView(); 117 ControllerPairingScreenView* GetControllerPairingScreenView();
116 HostPairingScreenView* GetHostPairingScreenView(); 118 HostPairingScreenView* GetHostPairingScreenView();
117 DeviceDisabledScreenView* GetDeviceDisabledScreenView(); 119 DeviceDisabledScreenView* GetDeviceDisabledScreenView();
118 EncryptionMigrationScreenView* GetEncryptionMigrationScreenView(); 120 EncryptionMigrationScreenView* GetEncryptionMigrationScreenView();
119 GaiaView* GetGaiaScreenView(); 121 GaiaView* GetGaiaScreenView();
120 UserBoardView* GetUserBoardView(); 122 UserBoardView* GetUserBoardView();
121 123
124 // Overridden from display::DisplayObserver:
125 void OnDisplayAdded(const display::Display& new_display) override;
126 void OnDisplayRemoved(const display::Display& old_display) override;
127 void OnDisplayMetricsChanged(const display::Display& display,
128 uint32_t changed_metrics) override;
129
122 // ShutdownPolicyHandler::Delegate 130 // ShutdownPolicyHandler::Delegate
123 void OnShutdownPolicyChanged(bool reboot_on_shutdown) override; 131 void OnShutdownPolicyChanged(bool reboot_on_shutdown) override;
124 132
125 // Collects localized strings from the owned handlers. 133 // Collects localized strings from the owned handlers.
126 void GetLocalizedStrings(base::DictionaryValue* localized_strings); 134 void GetLocalizedStrings(base::DictionaryValue* localized_strings);
127 135
128 // Initializes the handlers. 136 // Initializes the handlers.
129 void InitializeHandlers(); 137 void InitializeHandlers();
130 138
131 // Called when the screen has changed. 139 // Called when the screen has changed.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // Store the deferred JS calls before the screen handler instance is 252 // Store the deferred JS calls before the screen handler instance is
245 // initialized. 253 // initialized.
246 std::unique_ptr<JSCallsContainer> js_calls_container; 254 std::unique_ptr<JSCallsContainer> js_calls_container;
247 255
248 DISALLOW_COPY_AND_ASSIGN(OobeUI); 256 DISALLOW_COPY_AND_ASSIGN(OobeUI);
249 }; 257 };
250 258
251 } // namespace chromeos 259 } // namespace chromeos
252 260
253 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ 261 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/login_display_host_impl.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