| 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 virtual_keyboard { |
| 29 class VirtualKeyboardControllerProxy; |
| 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 18 matching lines...) Expand all Loading... |
| 52 virtual void Exit() OVERRIDE; | 60 virtual void Exit() OVERRIDE; |
| 53 virtual void NewTab() OVERRIDE; | 61 virtual void NewTab() OVERRIDE; |
| 54 virtual void NewWindow(bool is_incognito) OVERRIDE; | 62 virtual void NewWindow(bool is_incognito) OVERRIDE; |
| 55 virtual void ToggleMaximized() OVERRIDE; | 63 virtual void ToggleMaximized() OVERRIDE; |
| 56 virtual void OpenFileManager(bool as_dialog) OVERRIDE; | 64 virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
| 57 virtual void OpenCrosh() OVERRIDE; | 65 virtual void OpenCrosh() OVERRIDE; |
| 58 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; | 66 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; |
| 59 virtual void RestoreTab() OVERRIDE; | 67 virtual void RestoreTab() OVERRIDE; |
| 60 virtual bool RotatePaneFocus(ash::Shell::Direction direction) OVERRIDE; | 68 virtual bool RotatePaneFocus(ash::Shell::Direction direction) OVERRIDE; |
| 61 virtual void ShowKeyboardOverlay() OVERRIDE; | 69 virtual void ShowKeyboardOverlay() OVERRIDE; |
| 70 virtual virtual_keyboard::VirtualKeyboardControllerProxy* |
| 71 CreateVirtualKeyboardControllerProxy() OVERRIDE; |
| 62 virtual void ShowTaskManager() OVERRIDE; | 72 virtual void ShowTaskManager() OVERRIDE; |
| 63 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; | 73 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; |
| 64 virtual void ToggleHighContrast() OVERRIDE; | 74 virtual void ToggleHighContrast() OVERRIDE; |
| 65 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; | 75 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; |
| 66 virtual void ToggleSpokenFeedback( | 76 virtual void ToggleSpokenFeedback( |
| 67 ash::AccessibilityNotificationVisibility notify) OVERRIDE; | 77 ash::AccessibilityNotificationVisibility notify) OVERRIDE; |
| 68 virtual bool IsHighContrastEnabled() const OVERRIDE; | 78 virtual bool IsHighContrastEnabled() const OVERRIDE; |
| 69 virtual void SetMagnifierEnabled(bool enabled) OVERRIDE; | 79 virtual void SetMagnifierEnabled(bool enabled) OVERRIDE; |
| 70 virtual void SetMagnifierType(ash::MagnifierType type) OVERRIDE; | 80 virtual void SetMagnifierType(ash::MagnifierType type) OVERRIDE; |
| 71 virtual bool IsMagnifierEnabled() const OVERRIDE; | 81 virtual bool IsMagnifierEnabled() const OVERRIDE; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 scoped_ptr<ash::WindowPositioner> window_positioner_; | 120 scoped_ptr<ash::WindowPositioner> window_positioner_; |
| 111 | 121 |
| 112 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; | 122 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; |
| 113 | 123 |
| 114 ChromeLauncherController* launcher_delegate_; | 124 ChromeLauncherController* launcher_delegate_; |
| 115 | 125 |
| 116 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 126 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 117 }; | 127 }; |
| 118 | 128 |
| 119 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 129 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |