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

Side by Side Diff: views/widget/widget_gtk.h

Issue 149111: Makes WidgetGtk specify a size before realizing the window. Without... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | views/widget/widget_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 VIEWS_WIDGET_WIDGET_GTK_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_GTK_H_
6 #define VIEWS_WIDGET_WIDGET_GTK_H_ 6 #define VIEWS_WIDGET_WIDGET_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 static gboolean CallVisibilityNotify(GtkWidget* widget, 177 static gboolean CallVisibilityNotify(GtkWidget* widget,
178 GdkEventVisibility* event); 178 GdkEventVisibility* event);
179 static gboolean CallGrabBrokeEvent(GtkWidget* widget, GdkEvent* event); 179 static gboolean CallGrabBrokeEvent(GtkWidget* widget, GdkEvent* event);
180 static void CallGrabNotify(GtkWidget* widget, gboolean was_grabbed); 180 static void CallGrabNotify(GtkWidget* widget, gboolean was_grabbed);
181 static void CallDestroy(GtkObject* object); 181 static void CallDestroy(GtkObject* object);
182 182
183 // Returns the first ancestor of |widget| that is a window. 183 // Returns the first ancestor of |widget| that is a window.
184 static Window* GetWindowImpl(GtkWidget* widget); 184 static Window* GetWindowImpl(GtkWidget* widget);
185 185
186 // Creates the GtkWidget. 186 // Creates the GtkWidget.
187 void CreateGtkWidget(GtkWidget* parent); 187 void CreateGtkWidget(GtkWidget* parent, const gfx::Rect& bounds);
188 188
189 // Attaches the widget contents to the window's widget. 189 // Attaches the widget contents to the window's widget.
190 void AttachGtkWidgetToWindow(); 190 void AttachGtkWidgetToWindow();
191 191
192 // Invoked from create widget to enable the various bits needed for a 192 // Invoked from create widget to enable the various bits needed for a
193 // transparent background. This is only invoked if MakeTransparent has been 193 // transparent background. This is only invoked if MakeTransparent has been
194 // invoked. 194 // invoked.
195 void ConfigureWidgetForTransparentBackground(); 195 void ConfigureWidgetForTransparentBackground();
196 196
197 void HandleGrabBroke(); 197 void HandleGrabBroke();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 bool transparent_; 241 bool transparent_;
242 242
243 scoped_ptr<DefaultThemeProvider> default_theme_provider_; 243 scoped_ptr<DefaultThemeProvider> default_theme_provider_;
244 244
245 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); 245 DISALLOW_COPY_AND_ASSIGN(WidgetGtk);
246 }; 246 };
247 247
248 } // namespace views 248 } // namespace views
249 249
250 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ 250 #endif // VIEWS_WIDGET_WIDGET_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | views/widget/widget_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698