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

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

Issue 292233002: Disable VK overscroll for login/out-of-box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, keyboard override value: convert to bool Created 6 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/shell_delegate.h" 11 #include "ash/shell_delegate.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/chromeos/login/app_launch_controller.h" 15 #include "chrome/browser/chromeos/login/app_launch_controller.h"
16 #include "chrome/browser/chromeos/login/auth/auth_prewarmer.h" 16 #include "chrome/browser/chromeos/login/auth/auth_prewarmer.h"
17 #include "chrome/browser/chromeos/login/existing_user_controller.h" 17 #include "chrome/browser/chromeos/login/existing_user_controller.h"
18 #include "chrome/browser/chromeos/login/ui/login_display.h" 18 #include "chrome/browser/chromeos/login/ui/login_display.h"
19 #include "chrome/browser/chromeos/login/ui/login_display_host.h" 19 #include "chrome/browser/chromeos/login/ui/login_display_host.h"
20 #include "chrome/browser/chromeos/login/wizard_controller.h" 20 #include "chrome/browser/chromeos/login/wizard_controller.h"
21 #include "chrome/browser/chromeos/settings/device_settings_service.h" 21 #include "chrome/browser/chromeos/settings/device_settings_service.h"
22 #include "chromeos/audio/cras_audio_handler.h" 22 #include "chromeos/audio/cras_audio_handler.h"
23 #include "chromeos/dbus/session_manager_client.h" 23 #include "chromeos/dbus/session_manager_client.h"
24 #include "content/public/browser/notification_observer.h" 24 #include "content/public/browser/notification_observer.h"
25 #include "content/public/browser/notification_registrar.h" 25 #include "content/public/browser/notification_registrar.h"
26 #include "content/public/browser/web_contents_observer.h" 26 #include "content/public/browser/web_contents_observer.h"
27 #include "ui/gfx/display_observer.h"
27 #include "ui/gfx/rect.h" 28 #include "ui/gfx/rect.h"
28 #include "ui/keyboard/keyboard_controller_observer.h" 29 #include "ui/keyboard/keyboard_controller_observer.h"
29 30
30 class PrefService; 31 class PrefService;
31 32
32 namespace content { 33 namespace content {
33 class RenderFrameHost; 34 class RenderFrameHost;
34 class WebContents; 35 class WebContents;
35 } 36 }
36 37
37 namespace chromeos { 38 namespace chromeos {
38 39
39 class DemoAppLauncher; 40 class DemoAppLauncher;
40 class FocusRingController; 41 class FocusRingController;
41 class KeyboardDrivenOobeKeyHandler; 42 class KeyboardDrivenOobeKeyHandler;
42 class OobeUI; 43 class OobeUI;
43 class WebUILoginDisplay; 44 class WebUILoginDisplay;
44 class WebUILoginView; 45 class WebUILoginView;
45 46
46 // An implementation class for OOBE/login WebUI screen host. 47 // An implementation class for OOBE/login WebUI screen host.
47 // It encapsulates controllers, background integration and flow. 48 // It encapsulates controllers, background integration and flow.
48 class LoginDisplayHostImpl : public LoginDisplayHost, 49 class LoginDisplayHostImpl : public LoginDisplayHost,
49 public content::NotificationObserver, 50 public content::NotificationObserver,
50 public content::WebContentsObserver, 51 public content::WebContentsObserver,
51 public chromeos::SessionManagerClient::Observer, 52 public chromeos::SessionManagerClient::Observer,
52 public chromeos::CrasAudioHandler::AudioObserver, 53 public chromeos::CrasAudioHandler::AudioObserver,
53 public ash::VirtualKeyboardStateObserver, 54 public ash::VirtualKeyboardStateObserver,
54 public keyboard::KeyboardControllerObserver { 55 public keyboard::KeyboardControllerObserver,
56 public gfx::DisplayObserver {
55 public: 57 public:
56 explicit LoginDisplayHostImpl(const gfx::Rect& background_bounds); 58 explicit LoginDisplayHostImpl(const gfx::Rect& background_bounds);
57 virtual ~LoginDisplayHostImpl(); 59 virtual ~LoginDisplayHostImpl();
58 60
59 // Returns the default LoginDisplayHost instance if it has been created. 61 // Returns the default LoginDisplayHost instance if it has been created.
60 static LoginDisplayHost* default_host() { 62 static LoginDisplayHost* default_host() {
61 return default_host_; 63 return default_host_;
62 } 64 }
63 65
64 // Gets the Gaia auth iframe within a WebContents. 66 // Gets the Gaia auth iframe within a WebContents.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 124
123 // Overridden from chromeos::CrasAudioHandler::AudioObserver: 125 // Overridden from chromeos::CrasAudioHandler::AudioObserver:
124 virtual void OnActiveOutputNodeChanged() OVERRIDE; 126 virtual void OnActiveOutputNodeChanged() OVERRIDE;
125 127
126 // Overridden from ash::KeyboardStateObserver: 128 // Overridden from ash::KeyboardStateObserver:
127 virtual void OnVirtualKeyboardStateChanged(bool activated) OVERRIDE; 129 virtual void OnVirtualKeyboardStateChanged(bool activated) OVERRIDE;
128 130
129 // Overridden from keyboard::KeyboardControllerObserver: 131 // Overridden from keyboard::KeyboardControllerObserver:
130 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE; 132 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE;
131 133
134 // Overridden from gfx::DisplayObserver:
135 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE;
136 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE;
137 virtual void OnDisplayMetricsChanged(const gfx::Display& display,
138 uint32_t changed_metrics) OVERRIDE;
139
132 private: 140 private:
133 // Way to restore if renderer have crashed. 141 // Way to restore if renderer have crashed.
134 enum RestorePath { 142 enum RestorePath {
135 RESTORE_UNKNOWN, 143 RESTORE_UNKNOWN,
136 RESTORE_WIZARD, 144 RESTORE_WIZARD,
137 RESTORE_SIGN_IN, 145 RESTORE_SIGN_IN,
138 RESTORE_ADD_USER_INTO_SESSION, 146 RESTORE_ADD_USER_INTO_SESSION,
139 }; 147 };
140 148
141 // Type of animations to run after the login screen. 149 // Type of animations to run after the login screen.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 316
309 // The bounds of the virtual keyboard. 317 // The bounds of the virtual keyboard.
310 gfx::Rect keyboard_bounds_; 318 gfx::Rect keyboard_bounds_;
311 319
312 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); 320 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl);
313 }; 321 };
314 322
315 } // namespace chromeos 323 } // namespace chromeos
316 324
317 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ 325 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/login_display.h ('k') | chrome/browser/chromeos/login/ui/login_display_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698