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

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

Issue 8890027: GTK: Remove most calls to widget->window and replace with accessor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Provides colors and stuff. 169 // Provides colors and stuff.
170 GtkThemeService* theme_service_; 170 GtkThemeService* theme_service_;
171 171
172 // The accel group attached to |window_|, to handle closing with escape. 172 // The accel group attached to |window_|, to handle closing with escape.
173 GtkAccelGroup* accel_group_; 173 GtkAccelGroup* accel_group_;
174 174
175 // The window for which we're being shown (and to which |rect_| is relative). 175 // The window for which we're being shown (and to which |rect_| is relative).
176 // Note that it's possible for |toplevel_window_| to be NULL if the 176 // Note that it's possible for |toplevel_window_| to be NULL if the
177 // window is destroyed before this object is destroyed, so it's important 177 // window is destroyed before this object is destroyed, so it's important
178 // to check for that case. 178 // to check for that case.
179 GtkWindow* toplevel_window_; 179 GtkWidget* toplevel_window_;
180 180
181 // The widget that we use to relatively position the popup window. 181 // The widget that we use to relatively position the popup window.
182 GtkWidget* anchor_widget_; 182 GtkWidget* anchor_widget_;
183 183
184 // Provides an offset from |anchor_widget_|'s origin for MoveWindow() to 184 // Provides an offset from |anchor_widget_|'s origin for MoveWindow() to
185 // use. 185 // use.
186 gfx::Rect rect_; 186 gfx::Rect rect_;
187 187
188 // The current shape of |window_| (used to test whether clicks fall in it or 188 // The current shape of |window_| (used to test whether clicks fall in it or
189 // not). 189 // not).
(...skipping 17 matching lines...) Expand all
207 bool closed_by_escape_; 207 bool closed_by_escape_;
208 208
209 content::NotificationRegistrar registrar_; 209 content::NotificationRegistrar registrar_;
210 210
211 ui::GtkSignalRegistrar signals_; 211 ui::GtkSignalRegistrar signals_;
212 212
213 DISALLOW_COPY_AND_ASSIGN(BubbleGtk); 213 DISALLOW_COPY_AND_ASSIGN(BubbleGtk);
214 }; 214 };
215 215
216 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ 216 #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') | chrome/browser/ui/gtk/gtk_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698