| 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 ASH_SHELL_DELEGATE_H_ | 5 #ifndef ASH_SHELL_DELEGATE_H_ |
| 6 #define ASH_SHELL_DELEGATE_H_ | 6 #define ASH_SHELL_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
| 12 #include "ash/shell.h" | 12 #include "ash/shell.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 | 15 |
| 16 namespace app_list { |
| 17 class AppListViewDelegate; |
| 18 } |
| 19 |
| 16 namespace aura { | 20 namespace aura { |
| 17 class Window; | 21 class Window; |
| 18 } | 22 } |
| 19 | 23 |
| 20 namespace views { | 24 namespace views { |
| 21 class Widget; | 25 class Widget; |
| 22 } | 26 } |
| 23 | 27 |
| 24 namespace ash { | 28 namespace ash { |
| 25 | 29 |
| 26 class AppListViewDelegate; | |
| 27 class LauncherDelegate; | 30 class LauncherDelegate; |
| 28 class LauncherModel; | 31 class LauncherModel; |
| 29 struct LauncherItem; | 32 struct LauncherItem; |
| 30 class ScreenshotDelegate; | 33 class ScreenshotDelegate; |
| 31 class SystemTray; | 34 class SystemTray; |
| 32 class SystemTrayDelegate; | 35 class SystemTrayDelegate; |
| 33 class UserWallpaperDelegate; | 36 class UserWallpaperDelegate; |
| 34 | 37 |
| 35 // Delegate of the Shell. | 38 // Delegate of the Shell. |
| 36 class ASH_EXPORT ShellDelegate { | 39 class ASH_EXPORT ShellDelegate { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 76 |
| 74 // Get the current browser context. This will get us the current profile. | 77 // Get the current browser context. This will get us the current profile. |
| 75 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; | 78 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; |
| 76 | 79 |
| 77 // Invoked when the user presses a shortcut to toggle spoken feedback | 80 // Invoked when the user presses a shortcut to toggle spoken feedback |
| 78 // for accessibility. | 81 // for accessibility. |
| 79 virtual void ToggleSpokenFeedback() = 0; | 82 virtual void ToggleSpokenFeedback() = 0; |
| 80 | 83 |
| 81 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 84 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
| 82 // the created delegate. | 85 // the created delegate. |
| 83 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; | 86 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; |
| 84 | 87 |
| 85 // Invoked to start taking partial screenshot. | 88 // Invoked to start taking partial screenshot. |
| 86 virtual void StartPartialScreenshot( | 89 virtual void StartPartialScreenshot( |
| 87 ScreenshotDelegate* screenshot_delegate) = 0; | 90 ScreenshotDelegate* screenshot_delegate) = 0; |
| 88 | 91 |
| 89 // Creates a new LauncherDelegate. Shell takes ownership of the returned | 92 // Creates a new LauncherDelegate. Shell takes ownership of the returned |
| 90 // value. | 93 // value. |
| 91 virtual LauncherDelegate* CreateLauncherDelegate( | 94 virtual LauncherDelegate* CreateLauncherDelegate( |
| 92 ash::LauncherModel* model) = 0; | 95 ash::LauncherModel* model) = 0; |
| 93 | 96 |
| 94 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 97 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
| 95 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; | 98 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; |
| 96 | 99 |
| 97 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 100 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
| 98 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 101 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
| 99 }; | 102 }; |
| 100 | 103 |
| 101 } // namespace ash | 104 } // namespace ash |
| 102 | 105 |
| 103 #endif // ASH_SHELL_DELEGATE_H_ | 106 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |