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

Unified Diff: views/widget/native_widget_gtk.h

Issue 7024032: Wait showing html dialog until renderer finish painting after page is loaded. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang error Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/keyboard_overlay_dialog_view.cc ('k') | views/widget/native_widget_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « chrome/browser/ui/views/keyboard_overlay_dialog_view.cc ('k') | views/widget/native_widget_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698