| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 | 362 |
| 363 bool PanelBrowserWindowGtk::PreHandlePanelKeyboardEvent( | 363 bool PanelBrowserWindowGtk::PreHandlePanelKeyboardEvent( |
| 364 const NativeWebKeyboardEvent& event, | 364 const NativeWebKeyboardEvent& event, |
| 365 bool* is_keyboard_shortcut) { | 365 bool* is_keyboard_shortcut) { |
| 366 return PreHandleKeyboardEvent(event, is_keyboard_shortcut); | 366 return PreHandleKeyboardEvent(event, is_keyboard_shortcut); |
| 367 } | 367 } |
| 368 | 368 |
| 369 void PanelBrowserWindowGtk::FullScreenModeChanged(bool is_full_screen) { | 369 void PanelBrowserWindowGtk::FullScreenModeChanged(bool is_full_screen) { |
| 370 // Nothing to do here as z-order rules for panels ensures that they're below | 370 // Nothing to do here as z-order rules for panels ensures that they're below |
| 371 // any app running in full screen mode. | 371 // any app running in full screen mode. |
| 372 |
| 373 // Full screen detection should not have been enabled for Linux. |
| 374 NOTREACHED(); |
| 372 } | 375 } |
| 373 | 376 |
| 374 void PanelBrowserWindowGtk::HandlePanelKeyboardEvent( | 377 void PanelBrowserWindowGtk::HandlePanelKeyboardEvent( |
| 375 const NativeWebKeyboardEvent& event) { | 378 const NativeWebKeyboardEvent& event) { |
| 376 HandleKeyboardEvent(event); | 379 HandleKeyboardEvent(event); |
| 377 } | 380 } |
| 378 | 381 |
| 379 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { | 382 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { |
| 380 return browser(); | 383 return browser(); |
| 381 } | 384 } |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 } | 760 } |
| 758 } | 761 } |
| 759 | 762 |
| 760 bool NativePanelTestingGtk::IsWindowSizeKnown() const { | 763 bool NativePanelTestingGtk::IsWindowSizeKnown() const { |
| 761 return panel_browser_window_gtk_->window_size_known_; | 764 return panel_browser_window_gtk_->window_size_known_; |
| 762 } | 765 } |
| 763 | 766 |
| 764 bool NativePanelTestingGtk::IsAnimatingBounds() const { | 767 bool NativePanelTestingGtk::IsAnimatingBounds() const { |
| 765 return panel_browser_window_gtk_->IsAnimatingBounds(); | 768 return panel_browser_window_gtk_->IsAnimatingBounds(); |
| 766 } | 769 } |
| OLD | NEW |