| 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" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; | 49 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; |
| 50 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; | 50 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
| 51 virtual ash::LauncherDelegate* CreateLauncherDelegate( | 51 virtual ash::LauncherDelegate* CreateLauncherDelegate( |
| 52 ash::LauncherModel* model) OVERRIDE; | 52 ash::LauncherModel* model) OVERRIDE; |
| 53 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; | 53 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; |
| 54 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; | 54 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; |
| 55 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; | 55 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; |
| 56 virtual ash::SessionStateDelegate* CreateSessionStateDelegate() OVERRIDE; | 56 virtual ash::SessionStateDelegate* CreateSessionStateDelegate() OVERRIDE; |
| 57 virtual ash::AccessibilityDelegate* CreateAccessibilityDelegate() OVERRIDE; | 57 virtual ash::AccessibilityDelegate* CreateAccessibilityDelegate() OVERRIDE; |
| 58 virtual ash::NewWindowDelegate* CreateNewWindowDelegate() OVERRIDE; | 58 virtual ash::NewWindowDelegate* CreateNewWindowDelegate() OVERRIDE; |
| 59 virtual ash::MediaDelegate* CreateMediaDelegate() OVERRIDE; |
| 59 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; | 60 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; |
| 60 virtual void RecordUserMetricsAction(ash::UserMetricsAction action) OVERRIDE; | 61 virtual void RecordUserMetricsAction(ash::UserMetricsAction action) OVERRIDE; |
| 61 virtual void HandleMediaNextTrack() OVERRIDE; | |
| 62 virtual void HandleMediaPlayPause() OVERRIDE; | |
| 63 virtual void HandleMediaPrevTrack() OVERRIDE; | |
| 64 virtual ui::MenuModel* CreateContextMenu(aura::Window* root) OVERRIDE; | 62 virtual ui::MenuModel* CreateContextMenu(aura::Window* root) OVERRIDE; |
| 65 virtual ash::RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE; | 63 virtual ash::RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE; |
| 66 virtual string16 GetProductName() const OVERRIDE; | 64 virtual string16 GetProductName() const OVERRIDE; |
| 67 | 65 |
| 68 // content::NotificationObserver override: | 66 // content::NotificationObserver override: |
| 69 virtual void Observe(int type, | 67 virtual void Observe(int type, |
| 70 const content::NotificationSource& source, | 68 const content::NotificationSource& source, |
| 71 const content::NotificationDetails& details) OVERRIDE; | 69 const content::NotificationDetails& details) OVERRIDE; |
| 72 | 70 |
| 73 private: | 71 private: |
| 74 void PlatformInit(); | 72 void PlatformInit(); |
| 75 | 73 |
| 76 static ChromeShellDelegate* instance_; | 74 static ChromeShellDelegate* instance_; |
| 77 | 75 |
| 78 content::NotificationRegistrar registrar_; | 76 content::NotificationRegistrar registrar_; |
| 79 | 77 |
| 80 ChromeLauncherController* launcher_delegate_; | 78 ChromeLauncherController* launcher_delegate_; |
| 81 | 79 |
| 82 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 80 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 83 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |