| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // Returns true if the screen is currently locked. | 53 // Returns true if the screen is currently locked. |
| 54 virtual bool IsScreenLocked() const = 0; | 54 virtual bool IsScreenLocked() const = 0; |
| 55 | 55 |
| 56 // Shuts down the environment. | 56 // Shuts down the environment. |
| 57 virtual void Shutdown() = 0; | 57 virtual void Shutdown() = 0; |
| 58 | 58 |
| 59 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 59 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
| 60 virtual void Exit() = 0; | 60 virtual void Exit() = 0; |
| 61 | 61 |
| 62 // Invoked when the user uses Ctrl+T to open a new tab. |
| 63 virtual void NewTab() = 0; |
| 64 |
| 62 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. | 65 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. |
| 63 virtual void NewWindow(bool incognito) = 0; | 66 virtual void NewWindow(bool incognito) = 0; |
| 64 | 67 |
| 65 // Invoked when the user presses the Search key. | 68 // Invoked when the user presses the Search key. |
| 66 virtual void Search() = 0; | 69 virtual void Search() = 0; |
| 67 | 70 |
| 68 // Invoked when the user uses Ctrl-M to open file manager. | 71 // Invoked when the user uses Ctrl-M to open file manager. |
| 69 virtual void OpenFileManager() = 0; | 72 virtual void OpenFileManager() = 0; |
| 70 | 73 |
| 71 // Invoked when the user opens Crosh. | 74 // Invoked when the user opens Crosh. |
| 72 virtual void OpenCrosh() = 0; | 75 virtual void OpenCrosh() = 0; |
| 73 | 76 |
| 74 // Invoked when the user needs to set up mobile networking. | 77 // Invoked when the user needs to set up mobile networking. |
| 75 virtual void OpenMobileSetup() = 0; | 78 virtual void OpenMobileSetup() = 0; |
| 76 | 79 |
| 80 // Invoked when the user uses Shift+Ctrl+T to restore the closed tab. |
| 81 virtual void RestoreTab() = 0; |
| 82 |
| 77 // Shows the keyboard shortcut overlay. | 83 // Shows the keyboard shortcut overlay. |
| 78 virtual void ShowKeyboardOverlay() = 0; | 84 virtual void ShowKeyboardOverlay() = 0; |
| 79 | 85 |
| 86 // Shows the task manager window. |
| 87 virtual void ShowTaskManager() = 0; |
| 88 |
| 80 // Get the current browser context. This will get us the current profile. | 89 // Get the current browser context. This will get us the current profile. |
| 81 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; | 90 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; |
| 82 | 91 |
| 83 // Invoked when the user presses a shortcut to toggle spoken feedback | 92 // Invoked when the user presses a shortcut to toggle spoken feedback |
| 84 // for accessibility. | 93 // for accessibility. |
| 85 virtual void ToggleSpokenFeedback() = 0; | 94 virtual void ToggleSpokenFeedback() = 0; |
| 86 | 95 |
| 87 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 96 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
| 88 // the created delegate. | 97 // the created delegate. |
| 89 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; | 98 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 100 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 109 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
| 101 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; | 110 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; |
| 102 | 111 |
| 103 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 112 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
| 104 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 113 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
| 105 }; | 114 }; |
| 106 | 115 |
| 107 } // namespace ash | 116 } // namespace ash |
| 108 | 117 |
| 109 #endif // ASH_SHELL_DELEGATE_H_ | 118 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |