| 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/gtk/browser_titlebar.h" | 10 #include "chrome/browser/ui/gtk/browser_titlebar.h" |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 gboolean PanelBrowserWindowGtk::OnTitlebarButtonReleaseEvent( | 568 gboolean PanelBrowserWindowGtk::OnTitlebarButtonReleaseEvent( |
| 569 GtkWidget* widget, GdkEventButton* event) { | 569 GtkWidget* widget, GdkEventButton* event) { |
| 570 if (event->button != 1) | 570 if (event->button != 1) |
| 571 return TRUE; | 571 return TRUE; |
| 572 | 572 |
| 573 panel_->OnTitlebarClicked((event->state & GDK_CONTROL_MASK) ? | 573 panel_->OnTitlebarClicked((event->state & GDK_CONTROL_MASK) ? |
| 574 panel::APPLY_TO_ALL : panel::NO_MODIFIER); | 574 panel::APPLY_TO_ALL : panel::NO_MODIFIER); |
| 575 return TRUE; | 575 return TRUE; |
| 576 } | 576 } |
| 577 | 577 |
| 578 void PanelBrowserWindowGtk::PanelExpansionStateChanging( |
| 579 Panel::ExpansionState old_state, Panel::ExpansionState new_state) { |
| 580 } |
| 581 |
| 578 // NativePanelTesting implementation. | 582 // NativePanelTesting implementation. |
| 579 class NativePanelTestingGtk : public NativePanelTesting { | 583 class NativePanelTestingGtk : public NativePanelTesting { |
| 580 public: | 584 public: |
| 581 explicit NativePanelTestingGtk( | 585 explicit NativePanelTestingGtk( |
| 582 PanelBrowserWindowGtk* panel_browser_window_gtk); | 586 PanelBrowserWindowGtk* panel_browser_window_gtk); |
| 583 | 587 |
| 584 private: | 588 private: |
| 585 virtual void PressLeftMouseButtonTitlebar( | 589 virtual void PressLeftMouseButtonTitlebar( |
| 586 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE; | 590 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE; |
| 587 virtual void ReleaseMouseButtonTitlebar( | 591 virtual void ReleaseMouseButtonTitlebar( |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 break; | 714 break; |
| 711 case RESTORE_BUTTON: | 715 case RESTORE_BUTTON: |
| 712 button = titlebar->unminimize_button(); | 716 button = titlebar->unminimize_button(); |
| 713 break; | 717 break; |
| 714 default: | 718 default: |
| 715 NOTREACHED(); | 719 NOTREACHED(); |
| 716 return false; | 720 return false; |
| 717 } | 721 } |
| 718 return gtk_widget_get_visible(button->widget()); | 722 return gtk_widget_get_visible(button->widget()); |
| 719 } | 723 } |
| OLD | NEW |