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

Unified Diff: chrome/browser/ui/views/ash/chrome_shell_delegate.cc

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: chrome/browser/ui/views/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/views/ash/chrome_shell_delegate.cc b/chrome/browser/ui/views/ash/chrome_shell_delegate.cc
index 368d7981a135db1b5955f0d4b5efdc1996df9cc1..39f43b541c14efba6d1c08c9f6e7296ee65f220e 100644
--- a/chrome/browser/ui/views/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/views/ash/chrome_shell_delegate.cc
@@ -115,6 +115,19 @@ void ChromeShellDelegate::NewWindow(bool is_incognito) {
is_incognito ? profile->GetOffTheRecordProfile() : profile);
}
+bool ChromeShellDelegate::IsBrowserWindow(const aura::Window* window) {
+ for (BrowserList::const_iterator iter = BrowserList::begin();
+ iter != BrowserList::end();
+ ++iter) {
+ Browser* browser = *iter;
+ if (browser && browser->window() &&
+ browser->window()->GetNativeHandle() == window) {
+ return true;
+ }
+ }
+ return false;
+}
+
void ChromeShellDelegate::Search() {
// Exit fullscreen to show omnibox.
Browser* last_active = BrowserList::GetLastActive();

Powered by Google App Engine
This is Rietveld 408576698