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

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

Issue 471973002: Single pod autofocus disabled for touch view mode. Delegate class created for ash interactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "ash/shell_observer.h"
Nikita (slow) 2014/08/14 15:48:00 nit: not needeed
merkulova 2014/08/14 15:56:02 Done.
12 #include "base/basictypes.h" 13 #include "base/basictypes.h"
13 #include "base/callback.h" 14 #include "base/callback.h"
14 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
15 #include "base/containers/hash_tables.h" 16 #include "base/containers/hash_tables.h"
16 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
19 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_controller.h" 20 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_controller.h"
20 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h" 21 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h"
21 #include "chrome/browser/chromeos/login/signin_specifics.h" 22 #include "chrome/browser/chromeos/login/signin_specifics.h"
22 #include "chrome/browser/chromeos/login/ui/login_display.h" 23 #include "chrome/browser/chromeos/login/ui/login_display.h"
23 #include "chrome/browser/chromeos/login/users/user_manager.h" 24 #include "chrome/browser/chromeos/login/users/user_manager.h"
24 #include "chrome/browser/chromeos/settings/cros_settings.h" 25 #include "chrome/browser/chromeos/settings/cros_settings.h"
25 #include "chrome/browser/signin/screenlock_bridge.h" 26 #include "chrome/browser/signin/screenlock_bridge.h"
26 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 27 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
27 #include "chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h" 28 #include "chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h"
28 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" 29 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h"
29 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 30 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
31 #include "chrome/browser/ui/webui/chromeos/maximize_mode_controller_delegate.h"
30 #include "chromeos/ime/ime_keyboard.h" 32 #include "chromeos/ime/ime_keyboard.h"
31 #include "chromeos/network/portal_detector/network_portal_detector.h" 33 #include "chromeos/network/portal_detector/network_portal_detector.h"
32 #include "content/public/browser/notification_observer.h" 34 #include "content/public/browser/notification_observer.h"
33 #include "content/public/browser/notification_registrar.h" 35 #include "content/public/browser/notification_registrar.h"
34 #include "content/public/browser/web_ui.h" 36 #include "content/public/browser/web_ui.h"
35 #include "net/base/net_errors.h" 37 #include "net/base/net_errors.h"
36 #include "ui/events/event_handler.h" 38 #include "ui/events/event_handler.h"
37 39
38 namespace base { 40 namespace base {
39 class DictionaryValue; 41 class DictionaryValue;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 }; 206 };
205 207
206 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay 208 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay
207 // and LoginDisplay. 209 // and LoginDisplay.
208 class SigninScreenHandler 210 class SigninScreenHandler
209 : public BaseScreenHandler, 211 : public BaseScreenHandler,
210 public LoginDisplayWebUIHandler, 212 public LoginDisplayWebUIHandler,
211 public content::NotificationObserver, 213 public content::NotificationObserver,
212 public ScreenlockBridge::LockHandler, 214 public ScreenlockBridge::LockHandler,
213 public NetworkStateInformer::NetworkStateInformerObserver, 215 public NetworkStateInformer::NetworkStateInformerObserver,
214 public input_method::ImeKeyboard::Observer { 216 public input_method::ImeKeyboard::Observer,
217 public MaximizeModeControllerDelegate::Observer {
215 public: 218 public:
216 SigninScreenHandler( 219 SigninScreenHandler(
217 const scoped_refptr<NetworkStateInformer>& network_state_informer, 220 const scoped_refptr<NetworkStateInformer>& network_state_informer,
218 ErrorScreenActor* error_screen_actor, 221 ErrorScreenActor* error_screen_actor,
219 CoreOobeActor* core_oobe_actor, 222 CoreOobeActor* core_oobe_actor,
220 GaiaScreenHandler* gaia_screen_handler); 223 GaiaScreenHandler* gaia_screen_handler);
221 virtual ~SigninScreenHandler(); 224 virtual ~SigninScreenHandler();
222 225
223 // Shows the sign in screen. 226 // Shows the sign in screen.
224 void Show(const LoginScreenContext& context); 227 void Show(const LoginScreenContext& context);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 const gfx::Image& icon) OVERRIDE; 320 const gfx::Image& icon) OVERRIDE;
318 virtual void HideUserPodCustomIcon(const std::string& username) OVERRIDE; 321 virtual void HideUserPodCustomIcon(const std::string& username) OVERRIDE;
319 virtual void EnableInput() OVERRIDE; 322 virtual void EnableInput() OVERRIDE;
320 virtual void SetAuthType(const std::string& username, 323 virtual void SetAuthType(const std::string& username,
321 ScreenlockBridge::LockHandler::AuthType auth_type, 324 ScreenlockBridge::LockHandler::AuthType auth_type,
322 const std::string& initial_value) OVERRIDE; 325 const std::string& initial_value) OVERRIDE;
323 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( 326 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType(
324 const std::string& username) const OVERRIDE; 327 const std::string& username) const OVERRIDE;
325 virtual void Unlock(const std::string& user_email) OVERRIDE; 328 virtual void Unlock(const std::string& user_email) OVERRIDE;
326 329
330 // MaximizeModeControllerDelegate::Observer implementation:
331 virtual void OnMaximizeModeStarted() OVERRIDE;
332 virtual void OnMaximizeModeEnded() OVERRIDE;
333
327 // Updates authentication extension. Called when device settings that affect 334 // Updates authentication extension. Called when device settings that affect
328 // sign-in (allow BWSI and allow whitelist) are changed. 335 // sign-in (allow BWSI and allow whitelist) are changed.
329 void UserSettingsChanged(); 336 void UserSettingsChanged();
330 void UpdateAddButtonStatus(); 337 void UpdateAddButtonStatus();
331 338
332 // Restore input focus to current user pod. 339 // Restore input focus to current user pod.
333 void RefocusCurrentPod(); 340 void RefocusCurrentPod();
334 341
335 // WebUI message handlers. 342 // WebUI message handlers.
336 void HandleGetUsers(); 343 void HandleGetUsers();
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 486
480 base::Closure kiosk_enable_flow_aborted_callback_for_test_; 487 base::Closure kiosk_enable_flow_aborted_callback_for_test_;
481 488
482 // Non-owning ptr. 489 // Non-owning ptr.
483 // TODO (ygorshenin@): remove this dependency. 490 // TODO (ygorshenin@): remove this dependency.
484 GaiaScreenHandler* gaia_screen_handler_; 491 GaiaScreenHandler* gaia_screen_handler_;
485 492
486 // Helper that retrieves the authenticated user's e-mail address. 493 // Helper that retrieves the authenticated user's e-mail address.
487 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; 494 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_;
488 495
496 // Maximized mode controller delegate.
497 scoped_ptr<MaximizeModeControllerDelegate> max_mode_delegate_;
498
489 // Whether consumer management enrollment is in progress. 499 // Whether consumer management enrollment is in progress.
490 bool is_enrolling_consumer_management_; 500 bool is_enrolling_consumer_management_;
491 501
492 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 502 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
493 503
494 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 504 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
495 }; 505 };
496 506
497 } // namespace chromeos 507 } // namespace chromeos
498 508
499 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 509 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698