diff options
Diffstat (limited to 'views/widget/widget_gtk.h')
-rw-r--r-- | views/widget/widget_gtk.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/views/widget/widget_gtk.h b/views/widget/widget_gtk.h index 963076f..1bb4adc 100644 --- a/views/widget/widget_gtk.h +++ b/views/widget/widget_gtk.h @@ -179,6 +179,17 @@ class WidgetGtk : public Widget, // Enables debug painting. See |debug_paint_enabled_| for details. static void EnableDebugPaint(); + // Sets and deletes FREEZE_UPDATES property on given |window|. + // It adds the property when |enable| is true and remove if false. + // Calling this method will realize the window if it's not realized yet. + // This property is used to help WindowManager know when the window + // is fully painted so that WM can map the fully painted window. + // The property is based on Owen Taylor's proposal at + // http://mail.gnome.org/archives/wm-spec-list/2009-June/msg00002.html. + // This is just a hint to WM, and won't change the behavior for WM + // which does not support this property. + static void UpdateFreezeUpdatesProperty(GtkWindow* window, bool enable); + // Overridden from NativeWidget: virtual Widget* GetWidget() OVERRIDE; virtual void SetNativeWindowProperty(const char* name, void* value) OVERRIDE; @@ -428,6 +439,10 @@ class WidgetGtk : public Widget, // view the drag started from. View* dragged_view_; + // If the widget has ever been painted. This is used to guarantee + // that window manager shows the window only after the window is painted. + bool painted_; + DISALLOW_COPY_AND_ASSIGN(WidgetGtk); }; |