| 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 "ash/launcher/launcher_types.h" | 8 #include "ash/launcher/launcher_types.h" |
| 9 #include "ash/shell_delegate.h" | 9 #include "ash/shell_delegate.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 virtual void ShowTaskManager() OVERRIDE; | 52 virtual void ShowTaskManager() OVERRIDE; |
| 53 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; | 53 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; |
| 54 virtual void ToggleSpokenFeedback() OVERRIDE; | 54 virtual void ToggleSpokenFeedback() OVERRIDE; |
| 55 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; | 55 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; |
| 56 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; | 56 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
| 57 virtual ash::LauncherDelegate* CreateLauncherDelegate( | 57 virtual ash::LauncherDelegate* CreateLauncherDelegate( |
| 58 ash::LauncherModel* model) OVERRIDE; | 58 ash::LauncherModel* model) OVERRIDE; |
| 59 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate( | 59 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate( |
| 60 ash::SystemTray* tray) OVERRIDE; | 60 ash::SystemTray* tray) OVERRIDE; |
| 61 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; | 61 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; |
| 62 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; |
| 62 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; | 63 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; |
| 63 virtual void OpenFeedbackPage() OVERRIDE; | 64 virtual void OpenFeedbackPage() OVERRIDE; |
| 64 virtual void RecordUserMetricsAction(ash::UserMetricsAction action) OVERRIDE; | 65 virtual void RecordUserMetricsAction(ash::UserMetricsAction action) OVERRIDE; |
| 65 | 66 |
| 66 // content::NotificationObserver override: | 67 // content::NotificationObserver override: |
| 67 virtual void Observe(int type, | 68 virtual void Observe(int type, |
| 68 const content::NotificationSource& source, | 69 const content::NotificationSource& source, |
| 69 const content::NotificationDetails& details) OVERRIDE; | 70 const content::NotificationDetails& details) OVERRIDE; |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 static ChromeShellDelegate* instance_; | 73 static ChromeShellDelegate* instance_; |
| 73 | 74 |
| 74 content::NotificationRegistrar registrar_; | 75 content::NotificationRegistrar registrar_; |
| 75 | 76 |
| 76 scoped_ptr<ash::WindowPositioner> window_positioner_; | 77 scoped_ptr<ash::WindowPositioner> window_positioner_; |
| 77 | 78 |
| 78 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; | 79 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 81 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 84 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |