OLD | NEW |
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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/chromeos/login/ui/login_display.h" | 22 #include "chrome/browser/chromeos/login/ui/login_display.h" |
23 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 23 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
24 #include "chrome/browser/chromeos/login/wizard_controller.h" | 24 #include "chrome/browser/chromeos/login/wizard_controller.h" |
25 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 25 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
26 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" | 26 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" |
27 #include "chromeos/audio/cras_audio_handler.h" | 27 #include "chromeos/audio/cras_audio_handler.h" |
28 #include "chromeos/dbus/session_manager_client.h" | 28 #include "chromeos/dbus/session_manager_client.h" |
29 #include "content/public/browser/notification_observer.h" | 29 #include "content/public/browser/notification_observer.h" |
30 #include "content/public/browser/notification_registrar.h" | 30 #include "content/public/browser/notification_registrar.h" |
31 #include "content/public/browser/web_contents_observer.h" | 31 #include "content/public/browser/web_contents_observer.h" |
32 #include "ui/gfx/display_observer.h" | 32 #include "ui/display/display_observer.h" |
33 #include "ui/gfx/geometry/rect.h" | 33 #include "ui/gfx/geometry/rect.h" |
34 #include "ui/keyboard/keyboard_controller_observer.h" | 34 #include "ui/keyboard/keyboard_controller_observer.h" |
35 #include "ui/views/widget/widget_removals_observer.h" | 35 #include "ui/views/widget/widget_removals_observer.h" |
36 #include "ui/wm/public/scoped_drag_drop_disabler.h" | 36 #include "ui/wm/public/scoped_drag_drop_disabler.h" |
37 | 37 |
38 class PrefService; | 38 class PrefService; |
39 class ScopedKeepAlive; | 39 class ScopedKeepAlive; |
40 | 40 |
41 namespace content { | 41 namespace content { |
42 class RenderFrameHost; | 42 class RenderFrameHost; |
(...skipping 10 matching lines...) Expand all Loading... |
53 | 53 |
54 // An implementation class for OOBE/login WebUI screen host. | 54 // An implementation class for OOBE/login WebUI screen host. |
55 // It encapsulates controllers, background integration and flow. | 55 // It encapsulates controllers, background integration and flow. |
56 class LoginDisplayHostImpl : public LoginDisplayHost, | 56 class LoginDisplayHostImpl : public LoginDisplayHost, |
57 public content::NotificationObserver, | 57 public content::NotificationObserver, |
58 public content::WebContentsObserver, | 58 public content::WebContentsObserver, |
59 public chromeos::SessionManagerClient::Observer, | 59 public chromeos::SessionManagerClient::Observer, |
60 public chromeos::CrasAudioHandler::AudioObserver, | 60 public chromeos::CrasAudioHandler::AudioObserver, |
61 public ash::VirtualKeyboardStateObserver, | 61 public ash::VirtualKeyboardStateObserver, |
62 public keyboard::KeyboardControllerObserver, | 62 public keyboard::KeyboardControllerObserver, |
63 public gfx::DisplayObserver, | 63 public display::DisplayObserver, |
64 public views::WidgetRemovalsObserver, | 64 public views::WidgetRemovalsObserver, |
65 public chrome::MultiUserWindowManager::Observer { | 65 public chrome::MultiUserWindowManager::Observer { |
66 public: | 66 public: |
67 explicit LoginDisplayHostImpl(const gfx::Rect& background_bounds); | 67 explicit LoginDisplayHostImpl(const gfx::Rect& background_bounds); |
68 ~LoginDisplayHostImpl() override; | 68 ~LoginDisplayHostImpl() override; |
69 | 69 |
70 // LoginDisplayHost implementation: | 70 // LoginDisplayHost implementation: |
71 LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate) override; | 71 LoginDisplay* CreateLoginDisplay(LoginDisplay::Delegate* delegate) override; |
72 gfx::NativeWindow GetNativeWindow() const override; | 72 gfx::NativeWindow GetNativeWindow() const override; |
73 OobeUI* GetOobeUI() const override; | 73 OobeUI* GetOobeUI() const override; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 // Overridden from chromeos::CrasAudioHandler::AudioObserver: | 124 // Overridden from chromeos::CrasAudioHandler::AudioObserver: |
125 void OnActiveOutputNodeChanged() override; | 125 void OnActiveOutputNodeChanged() override; |
126 | 126 |
127 // Overridden from ash::KeyboardStateObserver: | 127 // Overridden from ash::KeyboardStateObserver: |
128 void OnVirtualKeyboardStateChanged(bool activated) override; | 128 void OnVirtualKeyboardStateChanged(bool activated) override; |
129 | 129 |
130 // Overridden from keyboard::KeyboardControllerObserver: | 130 // Overridden from keyboard::KeyboardControllerObserver: |
131 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; | 131 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; |
132 | 132 |
133 // Overridden from gfx::DisplayObserver: | 133 // Overridden from display::DisplayObserver: |
134 void OnDisplayAdded(const gfx::Display& new_display) override; | 134 void OnDisplayAdded(const display::Display& new_display) override; |
135 void OnDisplayRemoved(const gfx::Display& old_display) override; | 135 void OnDisplayRemoved(const display::Display& old_display) override; |
136 void OnDisplayMetricsChanged(const gfx::Display& display, | 136 void OnDisplayMetricsChanged(const display::Display& display, |
137 uint32_t changed_metrics) override; | 137 uint32_t changed_metrics) override; |
138 | 138 |
139 // Overriden from views::WidgetRemovalsObserver: | 139 // Overriden from views::WidgetRemovalsObserver: |
140 void OnWillRemoveView(views::Widget* widget, views::View* view) override; | 140 void OnWillRemoveView(views::Widget* widget, views::View* view) override; |
141 | 141 |
142 // Overriden from chrome::MultiUserWindowManager::Observer: | 142 // Overriden from chrome::MultiUserWindowManager::Observer: |
143 void OnUserSwitchAnimationFinished() override; | 143 void OnUserSwitchAnimationFinished() override; |
144 | 144 |
145 private: | 145 private: |
146 // Way to restore if renderer have crashed. | 146 // Way to restore if renderer have crashed. |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 319 |
320 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; | 320 base::WeakPtrFactory<LoginDisplayHostImpl> pointer_factory_; |
321 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; | 321 base::WeakPtrFactory<LoginDisplayHostImpl> animation_weak_ptr_factory_; |
322 | 322 |
323 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); | 323 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); |
324 }; | 324 }; |
325 | 325 |
326 } // namespace chromeos | 326 } // namespace chromeos |
327 | 327 |
328 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 328 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
OLD | NEW |