| 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_list.h" | 8 #include "chrome/browser/ui/browser_list.h" |
| 9 #include "chrome/browser/ui/gtk/browser_titlebar.h" | 9 #include "chrome/browser/ui/gtk/browser_titlebar.h" |
| 10 #include "chrome/browser/ui/panels/panel.h" | 10 #include "chrome/browser/ui/panels/panel.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 drag_end_factory_(this), | 62 drag_end_factory_(this), |
| 63 panel_(panel), | 63 panel_(panel), |
| 64 bounds_(bounds), | 64 bounds_(bounds), |
| 65 window_size_known_(false), | 65 window_size_known_(false), |
| 66 is_drawing_attention_(false), | 66 is_drawing_attention_(false), |
| 67 window_has_mouse_(false), | 67 window_has_mouse_(false), |
| 68 show_close_button_(true) { | 68 show_close_button_(true) { |
| 69 } | 69 } |
| 70 | 70 |
| 71 PanelBrowserWindowGtk::~PanelBrowserWindowGtk() { | 71 PanelBrowserWindowGtk::~PanelBrowserWindowGtk() { |
| 72 CleanupDragDrop(); |
| 72 } | 73 } |
| 73 | 74 |
| 74 void PanelBrowserWindowGtk::Init() { | 75 void PanelBrowserWindowGtk::Init() { |
| 75 BrowserWindowGtk::Init(); | 76 BrowserWindowGtk::Init(); |
| 76 | 77 |
| 77 // Keep the window always on top. | 78 // Keep the window always on top. |
| 78 gtk_window_set_keep_above(window(), TRUE); | 79 gtk_window_set_keep_above(window(), TRUE); |
| 79 | 80 |
| 80 // Show the window on all the virtual desktops. | 81 // Show the window on all the virtual desktops. |
| 81 gtk_window_stick(window()); | 82 gtk_window_stick(window()); |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 MessageLoopForUI::current()->RunAllPending(); | 878 MessageLoopForUI::current()->RunAllPending(); |
| 878 } | 879 } |
| 879 | 880 |
| 880 bool NativePanelTestingGtk::IsWindowSizeKnown() const { | 881 bool NativePanelTestingGtk::IsWindowSizeKnown() const { |
| 881 return panel_browser_window_gtk_->window_size_known_; | 882 return panel_browser_window_gtk_->window_size_known_; |
| 882 } | 883 } |
| 883 | 884 |
| 884 bool NativePanelTestingGtk::IsAnimatingBounds() const { | 885 bool NativePanelTestingGtk::IsAnimatingBounds() const { |
| 885 return panel_browser_window_gtk_->IsAnimatingBounds(); | 886 return panel_browser_window_gtk_->IsAnimatingBounds(); |
| 886 } | 887 } |
| OLD | NEW |