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

Unified Diff: ash/shell_delegate.h

Issue 10134036: Let Chrome app handle Ash accelerators first if the app is launched as a window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 8 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 0a86aa33f48183d3a2724d3ecf96af693e23dc08..3e7aca893736d313f777ffc867261df6ff58b5b8 100644
--- a/ash/shell_delegate.h
+++ b/ash/shell_delegate.h
@@ -59,6 +59,9 @@ class ASH_EXPORT ShellDelegate {
// Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window.
virtual void NewWindow(bool incognito) = 0;
+ // Returns true if |window| is one of the browser windows.
+ virtual bool IsBrowserWindow(const aura::Window* window) = 0;
Ben Goodger (Google) 2012/05/01 16:00:37 IsWebContentsView()
Yusuke Sato 2012/05/02 16:40:11 I've added code directly to accelerator_filter.cc
Ben Goodger (Google) 2012/05/03 17:29:38 Why do you need to know if it is a browser window?
Yusuke Sato 2012/05/03 17:45:59 This is because when it is a (non-app) browser win
+
// Invoked when the user presses the Search key.
virtual void Search() = 0;

Powered by Google App Engine
This is Rietveld 408576698