| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ASH_CHROME_SHELL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/shelf/shelf_item_types.h" | 10 #include "ash/shelf/shelf_item_types.h" |
| 11 #include "ash/shell_delegate.h" | 11 #include "ash/shell_delegate.h" |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 16 #include "chrome/browser/ui/ash/metrics/chrome_user_metrics_recorder.h" | 16 #include "chrome/browser/ui/ash/metrics/chrome_user_metrics_recorder.h" |
| 17 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
| 18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
| 19 | 19 |
| 20 #if defined(OS_CHROMEOS) && defined(ENABLE_ARC) | 20 #if defined(OS_CHROMEOS) |
| 21 #include "ash/shell_observer.h" | 21 #include "ash/shell_observer.h" |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 class Browser; | 24 class Browser; |
| 25 | 25 |
| 26 namespace ash { | 26 namespace ash { |
| 27 class ShelfItemDelegate; | 27 class ShelfItemDelegate; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace content { | 30 namespace content { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 gfx::Image GetDeprecatedAcceleratorImage() const override; | 84 gfx::Image GetDeprecatedAcceleratorImage() const override; |
| 85 void ToggleTouchpad() override; | 85 void ToggleTouchpad() override; |
| 86 void ToggleTouchscreen() override; | 86 void ToggleTouchscreen() override; |
| 87 | 87 |
| 88 // content::NotificationObserver override: | 88 // content::NotificationObserver override: |
| 89 void Observe(int type, | 89 void Observe(int type, |
| 90 const content::NotificationSource& source, | 90 const content::NotificationSource& source, |
| 91 const content::NotificationDetails& details) override; | 91 const content::NotificationDetails& details) override; |
| 92 | 92 |
| 93 private: | 93 private: |
| 94 #if defined(OS_CHROMEOS) && defined(ENABLE_ARC) | 94 #if defined(OS_CHROMEOS) |
| 95 // An Observer to track session state and start/stop ARC accordingly. | 95 // An Observer to track session state and start/stop ARC accordingly. |
| 96 class ArcSessionObserver : public ash::ShellObserver { | 96 class ArcSessionObserver : public ash::ShellObserver { |
| 97 public: | 97 public: |
| 98 ArcSessionObserver(); | 98 ArcSessionObserver(); |
| 99 ~ArcSessionObserver() override; | 99 ~ArcSessionObserver() override; |
| 100 | 100 |
| 101 // ash::ShellObserver overrides: | 101 // ash::ShellObserver overrides: |
| 102 void OnLoginStateChanged(ash::user::LoginStatus status) override; | 102 void OnLoginStateChanged(ash::user::LoginStatus status) override; |
| 103 | 103 |
| 104 private: | 104 private: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 116 | 116 |
| 117 base::ObserverList<ash::VirtualKeyboardStateObserver> | 117 base::ObserverList<ash::VirtualKeyboardStateObserver> |
| 118 keyboard_state_observer_list_; | 118 keyboard_state_observer_list_; |
| 119 | 119 |
| 120 // Proxies events from chrome/browser to ash::UserMetricsRecorder. | 120 // Proxies events from chrome/browser to ash::UserMetricsRecorder. |
| 121 scoped_ptr<ChromeUserMetricsRecorder> chrome_user_metrics_recorder_; | 121 scoped_ptr<ChromeUserMetricsRecorder> chrome_user_metrics_recorder_; |
| 122 | 122 |
| 123 #if defined(OS_CHROMEOS) | 123 #if defined(OS_CHROMEOS) |
| 124 scoped_ptr<chromeos::DisplayConfigurationObserver> | 124 scoped_ptr<chromeos::DisplayConfigurationObserver> |
| 125 display_configuration_observer_; | 125 display_configuration_observer_; |
| 126 #endif | |
| 127 | 126 |
| 128 #if defined(OS_CHROMEOS) && defined(ENABLE_ARC) | |
| 129 // An Observer to track session state and start/stop ARC accordingly. | 127 // An Observer to track session state and start/stop ARC accordingly. |
| 130 scoped_ptr<ArcSessionObserver> arc_session_observer_; | 128 scoped_ptr<ArcSessionObserver> arc_session_observer_; |
| 131 #endif | 129 #endif |
| 132 | 130 |
| 133 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 131 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 134 }; | 132 }; |
| 135 | 133 |
| 136 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 134 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |