Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_gtk.cc

Issue 9692070: Ensure both PanelBrowserWindowGtk and BalloonCollectionImpl call RemoveObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/notifications/balloon_collection_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/balloon_collection_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698