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/launcher/launcher_types.h" | 10 #include "ash/launcher/launcher_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 "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
16 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
17 | 17 |
18 class Browser; | 18 class Browser; |
19 | 19 |
20 namespace ash { | 20 namespace ash { |
21 class WindowPositioner; | 21 class WindowPositioner; |
22 } | 22 } |
23 | 23 |
| 24 namespace content { |
| 25 class WebContents; |
| 26 } |
| 27 |
| 28 namespace keyboard { |
| 29 class KeyboardControllerProxy; |
| 30 } |
| 31 |
24 class ChromeLauncherController; | 32 class ChromeLauncherController; |
25 | 33 |
26 class ChromeShellDelegate : public ash::ShellDelegate, | 34 class ChromeShellDelegate : public ash::ShellDelegate, |
27 public content::NotificationObserver { | 35 public content::NotificationObserver { |
28 public: | 36 public: |
29 ChromeShellDelegate(); | 37 ChromeShellDelegate(); |
30 virtual ~ChromeShellDelegate(); | 38 virtual ~ChromeShellDelegate(); |
31 | 39 |
32 static ChromeShellDelegate* instance() { return instance_; } | 40 static ChromeShellDelegate* instance() { return instance_; } |
33 | 41 |
(...skipping 19 matching lines...) Expand all Loading... |
53 virtual void Exit() OVERRIDE; | 61 virtual void Exit() OVERRIDE; |
54 virtual void NewTab() OVERRIDE; | 62 virtual void NewTab() OVERRIDE; |
55 virtual void NewWindow(bool is_incognito) OVERRIDE; | 63 virtual void NewWindow(bool is_incognito) OVERRIDE; |
56 virtual void ToggleMaximized() OVERRIDE; | 64 virtual void ToggleMaximized() OVERRIDE; |
57 virtual void OpenFileManager(bool as_dialog) OVERRIDE; | 65 virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
58 virtual void OpenCrosh() OVERRIDE; | 66 virtual void OpenCrosh() OVERRIDE; |
59 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; | 67 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; |
60 virtual void RestoreTab() OVERRIDE; | 68 virtual void RestoreTab() OVERRIDE; |
61 virtual bool RotatePaneFocus(ash::Shell::Direction direction) OVERRIDE; | 69 virtual bool RotatePaneFocus(ash::Shell::Direction direction) OVERRIDE; |
62 virtual void ShowKeyboardOverlay() OVERRIDE; | 70 virtual void ShowKeyboardOverlay() OVERRIDE; |
| 71 virtual keyboard::KeyboardControllerProxy* |
| 72 CreateKeyboardControllerProxy() OVERRIDE; |
63 virtual void ShowTaskManager() OVERRIDE; | 73 virtual void ShowTaskManager() OVERRIDE; |
64 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; | 74 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; |
65 virtual void ToggleHighContrast() OVERRIDE; | 75 virtual void ToggleHighContrast() OVERRIDE; |
66 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; | 76 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; |
67 virtual void ToggleSpokenFeedback( | 77 virtual void ToggleSpokenFeedback( |
68 ash::AccessibilityNotificationVisibility notify) OVERRIDE; | 78 ash::AccessibilityNotificationVisibility notify) OVERRIDE; |
69 virtual bool IsHighContrastEnabled() const OVERRIDE; | 79 virtual bool IsHighContrastEnabled() const OVERRIDE; |
70 virtual void SetMagnifierEnabled(bool enabled) OVERRIDE; | 80 virtual void SetMagnifierEnabled(bool enabled) OVERRIDE; |
71 virtual void SetMagnifierType(ash::MagnifierType type) OVERRIDE; | 81 virtual void SetMagnifierType(ash::MagnifierType type) OVERRIDE; |
72 virtual bool IsMagnifierEnabled() const OVERRIDE; | 82 virtual bool IsMagnifierEnabled() const OVERRIDE; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 scoped_ptr<ash::WindowPositioner> window_positioner_; | 121 scoped_ptr<ash::WindowPositioner> window_positioner_; |
112 | 122 |
113 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; | 123 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; |
114 | 124 |
115 ChromeLauncherController* launcher_delegate_; | 125 ChromeLauncherController* launcher_delegate_; |
116 | 126 |
117 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 127 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
118 }; | 128 }; |
119 | 129 |
120 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 130 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
OLD | NEW |