Index: views/widget/native_widget_gtk.h |
diff --git a/views/widget/native_widget_gtk.h b/views/widget/native_widget_gtk.h |
index 260329883b33f03ce9fdf48aa2a8dc5775778efb..f080b10e8f1403c9310ff1962b3283b2ac8d7650 100644 |
--- a/views/widget/native_widget_gtk.h |
+++ b/views/widget/native_widget_gtk.h |
@@ -108,7 +108,7 @@ class NativeWidgetGtk : public NativeWidget, |
void GetRequestedSize(gfx::Size* out) const; |
// Overridden from ui::ActiveWindowWatcherX::Observer. |
- virtual void ActiveWindowChanged(GdkWindow* active_window); |
+ virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; |
// Clears the focus on the native widget having the focus. |
virtual void ClearNativeFocus(); |
@@ -117,6 +117,13 @@ class NativeWidgetGtk : public NativeWidget, |
// Returns true if it's handled by the focus manager. |
bool HandleKeyboardEvent(const KeyEvent& key); |
+ // Tells widget not to remove FREEZE_UPDATES property when the |
+ // widget is painted. This is used if painting the gtk widget |
+ // is not enough to show the window and has to wait further like |
+ // keyboard overlay. Returns true if this is called before |
+ // FREEZE_UPDATES property is removed, or false otherwise. |
+ bool SuppressFreezeUpdates(); |
+ |
// Enables debug painting. See |debug_paint_enabled_| for details. |
static void EnableDebugPaint(); |