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