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

Side by Side Diff: chrome/browser/ui/gtk/bubble/bubble_gtk.h

Issue 10985026: [gtk] Close zoom bubble immediately when window is closed to avoid orphaned (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « no previous file | chrome/browser/ui/gtk/bubble/bubble_gtk.cc » ('j') | 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 #ifndef CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnExpose, GdkEventExpose*); 178 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnExpose, GdkEventExpose*);
179 CHROMEGTK_CALLBACK_1(BubbleGtk, void, OnSizeAllocate, GtkAllocation*); 179 CHROMEGTK_CALLBACK_1(BubbleGtk, void, OnSizeAllocate, GtkAllocation*);
180 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnButtonPress, GdkEventButton*); 180 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnButtonPress, GdkEventButton*);
181 CHROMEGTK_CALLBACK_0(BubbleGtk, gboolean, OnDestroy); 181 CHROMEGTK_CALLBACK_0(BubbleGtk, gboolean, OnDestroy);
182 CHROMEGTK_CALLBACK_0(BubbleGtk, void, OnHide); 182 CHROMEGTK_CALLBACK_0(BubbleGtk, void, OnHide);
183 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnToplevelConfigure, 183 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnToplevelConfigure,
184 GdkEventConfigure*); 184 GdkEventConfigure*);
185 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnToplevelUnmap, GdkEvent*); 185 CHROMEGTK_CALLBACK_1(BubbleGtk, gboolean, OnToplevelUnmap, GdkEvent*);
186 CHROMEGTK_CALLBACK_1(BubbleGtk, void, OnAnchorAllocate, GtkAllocation*); 186 CHROMEGTK_CALLBACK_1(BubbleGtk, void, OnAnchorAllocate, GtkAllocation*);
187 CHROMEGTK_CALLBACK_0(BubbleGtk, void, OnAnchorDestroy);
188 CHROMEGTK_CALLBACK_0(BubbleGtk, void, OnToplevelDestroy);
187 189
188 // The caller supplied delegate, can be NULL. 190 // The caller supplied delegate, can be NULL.
189 BubbleDelegateGtk* delegate_; 191 BubbleDelegateGtk* delegate_;
190 192
191 // Our GtkWindow popup window, we don't technically "own" the widget, since 193 // Our GtkWindow popup window, we don't technically "own" the widget, since
192 // it deletes us when it is destroyed. 194 // it deletes us when it is destroyed.
193 GtkWidget* window_; 195 GtkWidget* window_;
194 196
195 // Provides colors and stuff. 197 // Provides colors and stuff.
196 GtkThemeService* theme_service_; 198 GtkThemeService* theme_service_;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 bool closed_by_escape_; 235 bool closed_by_escape_;
234 236
235 content::NotificationRegistrar registrar_; 237 content::NotificationRegistrar registrar_;
236 238
237 ui::GtkSignalRegistrar signals_; 239 ui::GtkSignalRegistrar signals_;
238 240
239 DISALLOW_COPY_AND_ASSIGN(BubbleGtk); 241 DISALLOW_COPY_AND_ASSIGN(BubbleGtk);
240 }; 242 };
241 243
242 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ 244 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/bubble/bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698