Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: ash/shell_delegate.h

Issue 10414064: Handle more browser commands in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // Returns true if the screen is currently locked. 57 // Returns true if the screen is currently locked.
58 virtual bool IsScreenLocked() const = 0; 58 virtual bool IsScreenLocked() const = 0;
59 59
60 // Shuts down the environment. 60 // Shuts down the environment.
61 virtual void Shutdown() = 0; 61 virtual void Shutdown() = 0;
62 62
63 // Invoked when the user uses Ctrl-Shift-Q to close chrome. 63 // Invoked when the user uses Ctrl-Shift-Q to close chrome.
64 virtual void Exit() = 0; 64 virtual void Exit() = 0;
65 65
66 // Invoked when the user uses Ctrl+T to open a new tab.
67 virtual void NewTab() = 0;
68
66 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. 69 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window.
67 virtual void NewWindow(bool incognito) = 0; 70 virtual void NewWindow(bool incognito) = 0;
68 71
69 // Invoked when the user presses the Search key. 72 // Invoked when the user presses the Search key.
70 virtual void Search() = 0; 73 virtual void Search() = 0;
71 74
72 // Invoked when the user uses Ctrl-M to open file manager. 75 // Invoked when the user uses Ctrl-M to open file manager.
73 virtual void OpenFileManager() = 0; 76 virtual void OpenFileManager() = 0;
74 77
75 // Invoked when the user opens Crosh. 78 // Invoked when the user opens Crosh.
76 virtual void OpenCrosh() = 0; 79 virtual void OpenCrosh() = 0;
77 80
78 // Invoked when the user needs to set up mobile networking. 81 // Invoked when the user needs to set up mobile networking.
79 virtual void OpenMobileSetup() = 0; 82 virtual void OpenMobileSetup() = 0;
80 83
84 // Invoked when the user uses Shift+Ctrl-O to open the bookmark manager.
85 virtual void OpenBookmarkManager() = 0;
86
87 // Invoked when the user uses Shift+Ctrl+Back to open the clear browsing data
88 // dialog.
89 virtual void OpenClearBrowsingData() = 0;
90
91 // Invoked when the user uses Ctrl+J to open the downloads page.
92 virtual void OpenDownloads() = 0;
93
94 // Invoked when the user uses Ctrl+/ or Shift+Ctrl+/ to open a help page.
95 virtual void OpenHelpPage() = 0;
96
97 // Invoked when the user uses Ctrl+H to open the history page.
98 virtual void OpenHistory() = 0;
99
100 // Invoked when the user uses Alt+Home to open the home page.
101 virtual void OpenHome() = 0;
102
103 // Invoked when the user uses Shift+Ctrl+T to restore the closed tab.
104 virtual void RestoreTab() = 0;
105
81 // Shows the keyboard shortcut overlay. 106 // Shows the keyboard shortcut overlay.
82 virtual void ShowKeyboardOverlay(ui::AcceleratorTarget* target) = 0; 107 virtual void ShowKeyboardOverlay(ui::AcceleratorTarget* target) = 0;
83 108
109 // Shows the task manager window.
110 virtual void ShowTaskManager() = 0;
111
84 // Get the current browser context. This will get us the current profile. 112 // Get the current browser context. This will get us the current profile.
85 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; 113 virtual content::BrowserContext* GetCurrentBrowserContext() = 0;
86 114
87 // Invoked when the user presses a shortcut to toggle spoken feedback 115 // Invoked when the user presses a shortcut to toggle spoken feedback
88 // for accessibility. 116 // for accessibility.
89 virtual void ToggleSpokenFeedback() = 0; 117 virtual void ToggleSpokenFeedback() = 0;
90 118
91 // Invoked to create an AppListViewDelegate. Shell takes the ownership of 119 // Invoked to create an AppListViewDelegate. Shell takes the ownership of
92 // the created delegate. 120 // the created delegate.
93 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; 121 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0;
(...skipping 10 matching lines...) Expand all
104 // Creates a system-tray delegate. Shell takes ownership of the delegate. 132 // Creates a system-tray delegate. Shell takes ownership of the delegate.
105 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; 133 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0;
106 134
107 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. 135 // Creates a user wallpaper delegate. Shell takes ownership of the delegate.
108 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; 136 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0;
109 }; 137 };
110 138
111 } // namespace ash 139 } // namespace ash
112 140
113 #endif // ASH_SHELL_DELEGATE_H_ 141 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698