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

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: Merge/Resolve. 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 240 }
241 241
242 void PanelBrowserWindowCocoa::HandlePanelKeyboardEvent( 242 void PanelBrowserWindowCocoa::HandlePanelKeyboardEvent(
243 const NativeWebKeyboardEvent& event) { 243 const NativeWebKeyboardEvent& event) {
244 if ([BrowserWindowUtils shouldHandleKeyboardEvent:event]) { 244 if ([BrowserWindowUtils shouldHandleKeyboardEvent:event]) {
245 [BrowserWindowUtils handleKeyboardEvent:event.os_event 245 [BrowserWindowUtils handleKeyboardEvent:event.os_event
246 inWindow:GetNativePanelHandle()]; 246 inWindow:GetNativePanelHandle()];
247 } 247 }
248 } 248 }
249 249
250 void PanelBrowserWindowCocoa::FullScreenModeChanged(
251 bool is_full_screen) {
252 [controller_ fullScreenModeChanged:is_full_screen];
253 }
254
250 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const { 255 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const {
251 return browser(); 256 return browser();
252 } 257 }
253 258
254 void PanelBrowserWindowCocoa::DestroyPanelBrowser() { 259 void PanelBrowserWindowCocoa::DestroyPanelBrowser() {
255 [controller_ close]; 260 [controller_ close];
256 } 261 }
257 262
258 gfx::Size PanelBrowserWindowCocoa::IconOnlySize() const { 263 gfx::Size PanelBrowserWindowCocoa::IconOnlySize() const {
259 // TODO(dimich): to be implemented. 264 // TODO(dimich): to be implemented.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 return false; 372 return false;
368 } 373 }
369 374
370 bool NativePanelTestingCocoa::IsWindowSizeKnown() const { 375 bool NativePanelTestingCocoa::IsWindowSizeKnown() const {
371 return true; 376 return true;
372 } 377 }
373 378
374 bool NativePanelTestingCocoa::IsAnimatingBounds() const { 379 bool NativePanelTestingCocoa::IsAnimatingBounds() const {
375 return [native_panel_window_->controller_ isAnimatingBounds]; 380 return [native_panel_window_->controller_ isAnimatingBounds];
376 } 381 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_cocoa.h ('k') | chrome/browser/ui/panels/panel_browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698