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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // Invoked when the user uses Ctrl-M to open file manager. | 65 // Invoked when the user uses Ctrl-M to open file manager. |
66 virtual void OpenFileManager() = 0; | 66 virtual void OpenFileManager() = 0; |
67 | 67 |
68 // Invoked when the user opens Crosh. | 68 // Invoked when the user opens Crosh. |
69 virtual void OpenCrosh() = 0; | 69 virtual void OpenCrosh() = 0; |
70 | 70 |
71 // Invoked when the user needs to set up mobile networking. | 71 // Invoked when the user needs to set up mobile networking. |
72 virtual void OpenMobileSetup() = 0; | 72 virtual void OpenMobileSetup() = 0; |
73 | 73 |
| 74 // Get the current browser context. This will get us the current profile. |
| 75 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; |
| 76 |
74 // Invoked when the user presses a shortcut to toggle spoken feedback | 77 // Invoked when the user presses a shortcut to toggle spoken feedback |
75 // for accessibility. | 78 // for accessibility. |
76 virtual void ToggleSpokenFeedback() = 0; | 79 virtual void ToggleSpokenFeedback() = 0; |
77 | 80 |
78 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 81 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
79 // the created delegate. | 82 // the created delegate. |
80 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; | 83 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; |
81 | 84 |
82 // Invoked to start taking partial screenshot. | 85 // Invoked to start taking partial screenshot. |
83 virtual void StartPartialScreenshot( | 86 virtual void StartPartialScreenshot( |
84 ScreenshotDelegate* screenshot_delegate) = 0; | 87 ScreenshotDelegate* screenshot_delegate) = 0; |
85 | 88 |
86 // Creates a new LauncherDelegate. Shell takes ownership of the returned | 89 // Creates a new LauncherDelegate. Shell takes ownership of the returned |
87 // value. | 90 // value. |
88 virtual LauncherDelegate* CreateLauncherDelegate( | 91 virtual LauncherDelegate* CreateLauncherDelegate( |
89 ash::LauncherModel* model) = 0; | 92 ash::LauncherModel* model) = 0; |
90 | 93 |
91 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 94 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
92 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; | 95 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; |
93 | 96 |
94 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 97 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
95 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 98 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
96 }; | 99 }; |
97 | 100 |
98 } // namespace ash | 101 } // namespace ash |
99 | 102 |
100 #endif // ASH_SHELL_DELEGATE_H_ | 103 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |