| OLD | NEW |
| 1 // Copyright (c) 2011 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_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_bounds_animation.h" | 10 #include "chrome/browser/ui/panels/panel_bounds_animation.h" |
| 11 #include "chrome/browser/ui/panels/panel_manager.h" | 11 #include "chrome/browser/ui/panels/panel_manager.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 return panel_browser_window_gtk; | 46 return panel_browser_window_gtk; |
| 47 } | 47 } |
| 48 | 48 |
| 49 PanelBrowserWindowGtk::PanelBrowserWindowGtk(Browser* browser, | 49 PanelBrowserWindowGtk::PanelBrowserWindowGtk(Browser* browser, |
| 50 Panel* panel, | 50 Panel* panel, |
| 51 const gfx::Rect& bounds) | 51 const gfx::Rect& bounds) |
| 52 : BrowserWindowGtk(browser), | 52 : BrowserWindowGtk(browser), |
| 53 system_drag_disabled_for_testing_(false), | 53 system_drag_disabled_for_testing_(false), |
| 54 last_mouse_down_(NULL), | 54 last_mouse_down_(NULL), |
| 55 drag_widget_(NULL), | 55 drag_widget_(NULL), |
| 56 destroy_drag_widget_factory_(this), | |
| 57 drag_end_factory_(this), | 56 drag_end_factory_(this), |
| 58 panel_(panel), | 57 panel_(panel), |
| 59 bounds_(bounds), | 58 bounds_(bounds), |
| 60 window_size_known_(false), | 59 window_size_known_(false), |
| 61 is_drawing_attention_(false) { | 60 is_drawing_attention_(false) { |
| 62 } | 61 } |
| 63 | 62 |
| 64 PanelBrowserWindowGtk::~PanelBrowserWindowGtk() { | 63 PanelBrowserWindowGtk::~PanelBrowserWindowGtk() { |
| 65 if (drag_widget_) { | 64 if (drag_widget_) { |
| 66 // Terminate the grab if we have it. We could do this using any widget, | 65 // Terminate the grab if we have it. We could do this using any widget, |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 } | 787 } |
| 789 } | 788 } |
| 790 | 789 |
| 791 bool NativePanelTestingGtk::IsWindowSizeKnown() const { | 790 bool NativePanelTestingGtk::IsWindowSizeKnown() const { |
| 792 return panel_browser_window_gtk_->window_size_known_; | 791 return panel_browser_window_gtk_->window_size_known_; |
| 793 } | 792 } |
| 794 | 793 |
| 795 bool NativePanelTestingGtk::IsAnimatingBounds() const { | 794 bool NativePanelTestingGtk::IsAnimatingBounds() const { |
| 796 return panel_browser_window_gtk_->IsAnimatingBounds(); | 795 return panel_browser_window_gtk_->IsAnimatingBounds(); |
| 797 } | 796 } |
| OLD | NEW |