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

Unified Diff: content/renderer/render_widget.h

Issue 10227004: RenderWidget's scheduleComposite should return a bool. (true iff a prompt composite will come). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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 | « no previous file | content/renderer/render_widget.cc » ('j') | content/renderer/render_widget.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 00ea03cf28d0ea332a6dcc6eaa7f1169d14527c2..d564c06e8ed6a1d5d8a14576e1b4b68ca84b22e4 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -122,7 +122,11 @@ class CONTENT_EXPORT RenderWidget
virtual void didBecomeReadyForAdditionalInput();
virtual void didCommitAndDrawCompositorFrame();
virtual void didCompleteSwapBuffers();
+#if defined(WEBWIDGETCLIENT_SCHEDULECOMPOSITE_RETURNS_BOOL)
+ virtual bool scheduleComposite();
+#else
virtual void scheduleComposite();
+#endif
virtual void scheduleAnimation();
virtual void didFocus();
virtual void didBlur();
@@ -207,6 +211,12 @@ class CONTENT_EXPORT RenderWidget
void DoDeferredClose();
void DoDeferredSetWindowRect(const WebKit::WebRect& pos);
+ // Returns true if a deferred update is possible.
+ bool CanDoDeferredUpdate() const;
+
+ // Returns true if a deferred update should be suppressed, even if possible.
+ bool ShouldSuppressDeferredUpdates() const;
+
// Set the background of the render widget to a bitmap. The bitmap will be
// tiled in both directions if it isn't big enough to fill the area. This is
// mainly intended to be used in conjuction with WebView::SetIsTransparent().
« no previous file with comments | « no previous file | content/renderer/render_widget.cc » ('j') | content/renderer/render_widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698