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 { | 16 namespace app_list { |
17 class AppListViewDelegate; | 17 class AppListViewDelegate; |
18 } | 18 } |
19 | 19 |
20 namespace aura { | 20 namespace aura { |
21 class Window; | 21 class Window; |
22 } | 22 } |
23 | 23 |
| 24 namespace ui { |
| 25 class AcceleratorTarget; |
| 26 } |
| 27 |
24 namespace views { | 28 namespace views { |
25 class Widget; | 29 class Widget; |
26 } | 30 } |
27 | 31 |
28 namespace ash { | 32 namespace ash { |
29 | 33 |
30 class LauncherDelegate; | 34 class LauncherDelegate; |
31 class LauncherModel; | 35 class LauncherModel; |
32 struct LauncherItem; | 36 struct LauncherItem; |
33 class ScreenshotDelegate; | 37 class ScreenshotDelegate; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 71 |
68 // Invoked when the user uses Ctrl-M to open file manager. | 72 // Invoked when the user uses Ctrl-M to open file manager. |
69 virtual void OpenFileManager() = 0; | 73 virtual void OpenFileManager() = 0; |
70 | 74 |
71 // Invoked when the user opens Crosh. | 75 // Invoked when the user opens Crosh. |
72 virtual void OpenCrosh() = 0; | 76 virtual void OpenCrosh() = 0; |
73 | 77 |
74 // Invoked when the user needs to set up mobile networking. | 78 // Invoked when the user needs to set up mobile networking. |
75 virtual void OpenMobileSetup() = 0; | 79 virtual void OpenMobileSetup() = 0; |
76 | 80 |
| 81 // Shows the keyboard shortcut overlay. |
| 82 virtual void ShowKeyboardOverlay(ui::AcceleratorTarget* target) = 0; |
| 83 |
77 // Get the current browser context. This will get us the current profile. | 84 // Get the current browser context. This will get us the current profile. |
78 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; | 85 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; |
79 | 86 |
80 // Invoked when the user presses a shortcut to toggle spoken feedback | 87 // Invoked when the user presses a shortcut to toggle spoken feedback |
81 // for accessibility. | 88 // for accessibility. |
82 virtual void ToggleSpokenFeedback() = 0; | 89 virtual void ToggleSpokenFeedback() = 0; |
83 | 90 |
84 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 91 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
85 // the created delegate. | 92 // the created delegate. |
86 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; | 93 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
97 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 104 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
98 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; | 105 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; |
99 | 106 |
100 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 107 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
101 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 108 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
102 }; | 109 }; |
103 | 110 |
104 } // namespace ash | 111 } // namespace ash |
105 | 112 |
106 #endif // ASH_SHELL_DELEGATE_H_ | 113 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |