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 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 namespace ash { | 24 namespace ash { |
25 | 25 |
26 class AppListViewDelegate; | 26 class AppListViewDelegate; |
27 class LauncherDelegate; | 27 class LauncherDelegate; |
28 class LauncherModel; | 28 class LauncherModel; |
29 struct LauncherItem; | 29 struct LauncherItem; |
30 class ScreenshotDelegate; | 30 class ScreenshotDelegate; |
31 class SystemTray; | 31 class SystemTray; |
32 class SystemTrayDelegate; | 32 class SystemTrayDelegate; |
| 33 class UserWallpaperDelegate; |
33 | 34 |
34 // Delegate of the Shell. | 35 // Delegate of the Shell. |
35 class ASH_EXPORT ShellDelegate { | 36 class ASH_EXPORT ShellDelegate { |
36 public: | 37 public: |
37 // Source requesting the window list. | 38 // Source requesting the window list. |
38 enum CycleSource { | 39 enum CycleSource { |
39 // Windows are going to be used for alt-tab (or F5). | 40 // Windows are going to be used for alt-tab (or F5). |
40 SOURCE_KEYBOARD, | 41 SOURCE_KEYBOARD, |
41 | 42 |
42 // Windows are going to be cycled from the launcher. | 43 // Windows are going to be cycled from the launcher. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual void StartPartialScreenshot( | 78 virtual void StartPartialScreenshot( |
78 ScreenshotDelegate* screenshot_delegate) = 0; | 79 ScreenshotDelegate* screenshot_delegate) = 0; |
79 | 80 |
80 // Creates a new LauncherDelegate. Shell takes ownership of the returned | 81 // Creates a new LauncherDelegate. Shell takes ownership of the returned |
81 // value. | 82 // value. |
82 virtual LauncherDelegate* CreateLauncherDelegate( | 83 virtual LauncherDelegate* CreateLauncherDelegate( |
83 ash::LauncherModel* model) = 0; | 84 ash::LauncherModel* model) = 0; |
84 | 85 |
85 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 86 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
86 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; | 87 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; |
| 88 |
| 89 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
| 90 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
87 }; | 91 }; |
88 | 92 |
89 } // namespace ash | 93 } // namespace ash |
90 | 94 |
91 #endif // ASH_SHELL_DELEGATE_H_ | 95 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |