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

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

Issue 2931063004: Extract colors from wallpaper and dynamically update login screen overlay (Closed)
Patch Set: Add image-loading class to small pods container Created 3 years, 6 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_SIGNIN_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/chromeos/login/signin_specifics.h" 23 #include "chrome/browser/chromeos/login/signin_specifics.h"
24 #include "chrome/browser/chromeos/login/ui/login_display.h" 24 #include "chrome/browser/chromeos/login/ui/login_display.h"
25 #include "chrome/browser/chromeos/settings/cros_settings.h" 25 #include "chrome/browser/chromeos/settings/cros_settings.h"
26 #include "chrome/browser/ui/webui/chromeos/login/base_webui_handler.h" 26 #include "chrome/browser/ui/webui/chromeos/login/base_webui_handler.h"
27 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" 27 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h"
28 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 28 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
29 #include "chromeos/dbus/power_manager_client.h" 29 #include "chromeos/dbus/power_manager_client.h"
30 #include "chromeos/network/portal_detector/network_portal_detector.h" 30 #include "chromeos/network/portal_detector/network_portal_detector.h"
31 #include "components/proximity_auth/screenlock_bridge.h" 31 #include "components/proximity_auth/screenlock_bridge.h"
32 #include "components/user_manager/user_manager.h" 32 #include "components/user_manager/user_manager.h"
33 #include "components/wallpaper/wallpaper_color_calculator_observer.h"
33 #include "content/public/browser/notification_observer.h" 34 #include "content/public/browser/notification_observer.h"
34 #include "content/public/browser/notification_registrar.h" 35 #include "content/public/browser/notification_registrar.h"
35 #include "content/public/browser/web_ui.h" 36 #include "content/public/browser/web_ui.h"
36 #include "mojo/public/cpp/bindings/binding.h" 37 #include "mojo/public/cpp/bindings/binding.h"
37 #include "net/base/net_errors.h" 38 #include "net/base/net_errors.h"
38 #include "ui/base/ime/chromeos/ime_keyboard.h" 39 #include "ui/base/ime/chromeos/ime_keyboard.h"
39 #include "ui/base/ime/chromeos/input_method_manager.h" 40 #include "ui/base/ime/chromeos/input_method_manager.h"
40 #include "ui/events/event_handler.h" 41 #include "ui/events/event_handler.h"
41 42
42 class AccountId; 43 class AccountId;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // LoginDisplay. 233 // LoginDisplay.
233 class SigninScreenHandler 234 class SigninScreenHandler
234 : public BaseWebUIHandler, 235 : public BaseWebUIHandler,
235 public LoginDisplayWebUIHandler, 236 public LoginDisplayWebUIHandler,
236 public content::NotificationObserver, 237 public content::NotificationObserver,
237 public NetworkStateInformer::NetworkStateInformerObserver, 238 public NetworkStateInformer::NetworkStateInformerObserver,
238 public PowerManagerClient::Observer, 239 public PowerManagerClient::Observer,
239 public input_method::ImeKeyboard::Observer, 240 public input_method::ImeKeyboard::Observer,
240 public ash::mojom::TouchViewObserver, 241 public ash::mojom::TouchViewObserver,
241 public lock_screen_apps::StateObserver, 242 public lock_screen_apps::StateObserver,
242 public OobeUI::Observer { 243 public OobeUI::Observer,
244 public wallpaper::WallpaperColorCalculatorObserver {
243 public: 245 public:
244 SigninScreenHandler( 246 SigninScreenHandler(
245 const scoped_refptr<NetworkStateInformer>& network_state_informer, 247 const scoped_refptr<NetworkStateInformer>& network_state_informer,
246 ErrorScreen* error_screen, 248 ErrorScreen* error_screen,
247 CoreOobeView* core_oobe_view, 249 CoreOobeView* core_oobe_view,
248 GaiaScreenHandler* gaia_screen_handler, 250 GaiaScreenHandler* gaia_screen_handler,
249 JSCallsContainer* js_calls_container); 251 JSCallsContainer* js_calls_container);
250 ~SigninScreenHandler() override; 252 ~SigninScreenHandler() override;
251 253
252 static std::string GetUserLastInputMethod(const std::string& username); 254 static std::string GetUserLastInputMethod(const std::string& username);
(...skipping 17 matching lines...) Expand all
270 void OnNetworkReady() override; 272 void OnNetworkReady() override;
271 void UpdateState(NetworkError::ErrorReason reason) override; 273 void UpdateState(NetworkError::ErrorReason reason) override;
272 274
273 // Required Local State preferences. 275 // Required Local State preferences.
274 static void RegisterPrefs(PrefRegistrySimple* registry); 276 static void RegisterPrefs(PrefRegistrySimple* registry);
275 277
276 // OobeUI::Observer implemetation. 278 // OobeUI::Observer implemetation.
277 void OnCurrentScreenChanged(OobeScreen current_screen, 279 void OnCurrentScreenChanged(OobeScreen current_screen,
278 OobeScreen new_screen) override; 280 OobeScreen new_screen) override;
279 281
282 // wallpaper::WallpaperColorCalculatorObserver implementation.
283 void OnColorCalculationComplete() override;
284
280 void SetFocusPODCallbackForTesting(base::Closure callback); 285 void SetFocusPODCallbackForTesting(base::Closure callback);
281 286
282 // To avoid spurious error messages on flaky networks, the offline message is 287 // To avoid spurious error messages on flaky networks, the offline message is
283 // only shown if the network is offline for a threshold number of seconds. 288 // only shown if the network is offline for a threshold number of seconds.
284 // This method reduces the threshold to zero, allowing the offline message to 289 // This method reduces the threshold to zero, allowing the offline message to
285 // show instantaneously in tests. 290 // show instantaneously in tests.
286 void ZeroOfflineTimeoutForTesting(); 291 void ZeroOfflineTimeoutForTesting();
287 292
288 // Gets the keyboard remapped pref value for |pref_name| key. Returns true if 293 // Gets the keyboard remapped pref value for |pref_name| key. Returns true if
289 // successful, otherwise returns false. 294 // successful, otherwise returns false.
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 lock_screen_apps_observer_; 563 lock_screen_apps_observer_;
559 564
560 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 565 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
561 566
562 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 567 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
563 }; 568 };
564 569
565 } // namespace chromeos 570 } // namespace chromeos
566 571
567 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 572 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698