| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_list.h" | 9 #include "chrome/browser/ui/browser_list.h" |
| 10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 bool PanelBrowserWindowGtk::IsPanelActive() const { | 453 bool PanelBrowserWindowGtk::IsPanelActive() const { |
| 454 return IsActive(); | 454 return IsActive(); |
| 455 } | 455 } |
| 456 | 456 |
| 457 void PanelBrowserWindowGtk::PreventActivationByOS(bool prevent_activation) { | 457 void PanelBrowserWindowGtk::PreventActivationByOS(bool prevent_activation) { |
| 458 gtk_window_set_accept_focus(window(), !prevent_activation); | 458 gtk_window_set_accept_focus(window(), !prevent_activation); |
| 459 return; | 459 return; |
| 460 } | 460 } |
| 461 | 461 |
| 462 gfx::NativeWindow PanelBrowserWindowGtk::GetNativePanelHandle() { | 462 gfx::NativeWindow PanelBrowserWindowGtk::GetNativePanelHandle() { |
| 463 return GetNativeHandle(); | 463 return GetNativeWindow(); |
| 464 } | 464 } |
| 465 | 465 |
| 466 void PanelBrowserWindowGtk::UpdatePanelTitleBar() { | 466 void PanelBrowserWindowGtk::UpdatePanelTitleBar() { |
| 467 UpdateTitleBar(); | 467 UpdateTitleBar(); |
| 468 } | 468 } |
| 469 | 469 |
| 470 void PanelBrowserWindowGtk::UpdatePanelLoadingAnimations(bool should_animate) { | 470 void PanelBrowserWindowGtk::UpdatePanelLoadingAnimations(bool should_animate) { |
| 471 UpdateLoadingAnimations(should_animate); | 471 UpdateLoadingAnimations(should_animate); |
| 472 } | 472 } |
| 473 | 473 |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 break; | 760 break; |
| 761 case panel::RESTORE_BUTTON: | 761 case panel::RESTORE_BUTTON: |
| 762 button = titlebar->restore_button(); | 762 button = titlebar->restore_button(); |
| 763 break; | 763 break; |
| 764 default: | 764 default: |
| 765 NOTREACHED(); | 765 NOTREACHED(); |
| 766 return false; | 766 return false; |
| 767 } | 767 } |
| 768 return gtk_widget_get_visible(button->widget()); | 768 return gtk_widget_get_visible(button->widget()); |
| 769 } | 769 } |
| OLD | NEW |