OLD | NEW |
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_gtk.h" | 5 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/ui/browser_list.h" | 8 #include "chrome/browser/ui/browser_list.h" |
9 #include "chrome/browser/ui/panels/panel.h" | 9 #include "chrome/browser/ui/panels/panel.h" |
10 #include "chrome/browser/ui/panels/panel_manager.h" | 10 #include "chrome/browser/ui/panels/panel_manager.h" |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 bool PanelBrowserWindowGtk::IsDrawingAttention() const { | 351 bool PanelBrowserWindowGtk::IsDrawingAttention() const { |
352 return is_drawing_attention_; | 352 return is_drawing_attention_; |
353 } | 353 } |
354 | 354 |
355 bool PanelBrowserWindowGtk::PreHandlePanelKeyboardEvent( | 355 bool PanelBrowserWindowGtk::PreHandlePanelKeyboardEvent( |
356 const NativeWebKeyboardEvent& event, | 356 const NativeWebKeyboardEvent& event, |
357 bool* is_keyboard_shortcut) { | 357 bool* is_keyboard_shortcut) { |
358 return PreHandleKeyboardEvent(event, is_keyboard_shortcut); | 358 return PreHandleKeyboardEvent(event, is_keyboard_shortcut); |
359 } | 359 } |
360 | 360 |
| 361 void PanelBrowserWindowGtk::FullScreenModeChanged(bool is_full_screen_mode_on) { |
| 362 // Nothing to do here as z-order rules for panels ensures that they're below |
| 363 // any app running in full screen mode. |
| 364 } |
| 365 |
361 void PanelBrowserWindowGtk::HandlePanelKeyboardEvent( | 366 void PanelBrowserWindowGtk::HandlePanelKeyboardEvent( |
362 const NativeWebKeyboardEvent& event) { | 367 const NativeWebKeyboardEvent& event) { |
363 HandleKeyboardEvent(event); | 368 HandleKeyboardEvent(event); |
364 } | 369 } |
365 | 370 |
366 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { | 371 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { |
367 return browser(); | 372 return browser(); |
368 } | 373 } |
369 | 374 |
370 void PanelBrowserWindowGtk::DestroyPanelBrowser() { | 375 void PanelBrowserWindowGtk::DestroyPanelBrowser() { |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 } | 740 } |
736 } | 741 } |
737 | 742 |
738 bool NativePanelTestingGtk::IsWindowSizeKnown() const { | 743 bool NativePanelTestingGtk::IsWindowSizeKnown() const { |
739 return panel_browser_window_gtk_->window_size_known_; | 744 return panel_browser_window_gtk_->window_size_known_; |
740 } | 745 } |
741 | 746 |
742 bool NativePanelTestingGtk::IsAnimatingBounds() const { | 747 bool NativePanelTestingGtk::IsAnimatingBounds() const { |
743 return panel_browser_window_gtk_->IsAnimatingBounds(); | 748 return panel_browser_window_gtk_->IsAnimatingBounds(); |
744 } | 749 } |
OLD | NEW |