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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ash/shell_delegate.h
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h
index dbbaaf9dd7c9b5d0071779e677bab595978b552a..f0ac8867a9fd1c7590282e76b9ec72e8d3872f32 100644
--- a/ash/shell_delegate.h
+++ b/ash/shell_delegate.h
@@ -63,6 +63,9 @@ class ASH_EXPORT ShellDelegate {
// Invoked when the user uses Ctrl-Shift-Q to close chrome.
virtual void Exit() = 0;
+ // Invoked when the user uses Ctrl+T to open a new tab.
+ virtual void NewTab() = 0;
+
// Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window.
virtual void NewWindow(bool incognito) = 0;
@@ -78,9 +81,34 @@ class ASH_EXPORT ShellDelegate {
// Invoked when the user needs to set up mobile networking.
virtual void OpenMobileSetup() = 0;
+ // Invoked when the user uses Shift+Ctrl-O to open the bookmark manager.
+ virtual void OpenBookmarkManager() = 0;
+
+ // Invoked when the user uses Shift+Ctrl+Back to open the clear browsing data
+ // dialog.
+ virtual void OpenClearBrowsingData() = 0;
+
+ // Invoked when the user uses Ctrl+J to open the downloads page.
+ virtual void OpenDownloads() = 0;
+
+ // Invoked when the user uses Ctrl+/ or Shift+Ctrl+/ to open a help page.
+ virtual void OpenHelpPage() = 0;
+
+ // Invoked when the user uses Ctrl+H to open the history page.
+ virtual void OpenHistory() = 0;
+
+ // Invoked when the user uses Alt+Home to open the home page.
+ virtual void OpenHome() = 0;
+
+ // Invoked when the user uses Shift+Ctrl+T to restore the closed tab.
+ virtual void RestoreTab() = 0;
+
// Shows the keyboard shortcut overlay.
virtual void ShowKeyboardOverlay(ui::AcceleratorTarget* target) = 0;
+ // Shows the task manager window.
+ virtual void ShowTaskManager() = 0;
+
// Get the current browser context. This will get us the current profile.
virtual content::BrowserContext* GetCurrentBrowserContext() = 0;

Powered by Google App Engine
This is Rietveld 408576698