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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_cocoa.mm

Issue 8686012: Make panels not show on top when there is an app running in full screen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/panels/panel_browser_window_cocoa.h" 5 #include "chrome/browser/ui/panels/panel_browser_window_cocoa.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/tabs/tab_strip_model.h" 8 #include "chrome/browser/tabs/tab_strip_model.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_list.h" 10 #include "chrome/browser/ui/browser_list.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 231 }
232 232
233 void PanelBrowserWindowCocoa::HandlePanelKeyboardEvent( 233 void PanelBrowserWindowCocoa::HandlePanelKeyboardEvent(
234 const NativeWebKeyboardEvent& event) { 234 const NativeWebKeyboardEvent& event) {
235 if ([BrowserWindowUtils shouldHandleKeyboardEvent:event]) { 235 if ([BrowserWindowUtils shouldHandleKeyboardEvent:event]) {
236 [BrowserWindowUtils handleKeyboardEvent:event.os_event 236 [BrowserWindowUtils handleKeyboardEvent:event.os_event
237 inWindow:GetNativePanelHandle()]; 237 inWindow:GetNativePanelHandle()];
238 } 238 }
239 } 239 }
240 240
241 void PanelBrowserWindowCocoa::FullScreenModeChanged(
242 bool is_full_screen_mode_on) {
243 [controller_ fullScreenModeChanged:is_full_screen_mode_on];
244 }
245
241 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const { 246 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const {
242 return browser(); 247 return browser();
243 } 248 }
244 249
245 void PanelBrowserWindowCocoa::DestroyPanelBrowser() { 250 void PanelBrowserWindowCocoa::DestroyPanelBrowser() {
246 [controller_ close]; 251 [controller_ close];
247 } 252 }
248 253
249 void PanelBrowserWindowCocoa::DidCloseNativeWindow() { 254 void PanelBrowserWindowCocoa::DidCloseNativeWindow() {
250 DCHECK(!isClosed()); 255 DCHECK(!isClosed());
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 return false; 354 return false;
350 } 355 }
351 356
352 bool NativePanelTestingCocoa::IsWindowSizeKnown() const { 357 bool NativePanelTestingCocoa::IsWindowSizeKnown() const {
353 return true; 358 return true;
354 } 359 }
355 360
356 bool NativePanelTestingCocoa::IsAnimatingBounds() const { 361 bool NativePanelTestingCocoa::IsAnimatingBounds() const {
357 return [native_panel_window_->controller_ isAnimatingBounds]; 362 return [native_panel_window_->controller_ isAnimatingBounds];
358 } 363 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698