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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 1408213002: Add hooks for flushing input from BeginFrame dispatch on Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build for real Created 5 years, 2 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
Index: content/browser/renderer_host/render_widget_host_view_aura.h
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
index 8cc79db39a8abb151a449118c32c96237cb04cce..b4c642465e5ed2eae8068756a7293eb6ad5af292 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
@@ -171,6 +171,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() override;
InputEventAckState FilterInputEvent(
const blink::WebInputEvent& input_event) override;
+ void OnSetNeedsFlushInput() override;
BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
BrowserAccessibilityDelegate* delegate) override;
gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override;
@@ -470,6 +471,12 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
// Called when RenderWidget wants to start BeginFrame scheduling or stop.
void OnSetNeedsBeginFrames(bool needs_begin_frames);
+ enum VSyncRequestType {
+ FLUSH_INPUT = 1 << 0,
+ PERSISTENT_BEGIN_FRAME = 1 << 1
+ };
+ void RequestVSyncUpdate(uint32 requests);
+
RenderFrameHostImpl* GetFocusedFrame();
// Returns true if the |event| passed in can be forwarded to the renderer.
@@ -659,7 +666,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
// compositing surface and showing the disambiguation popup.
gfx::Vector2dF disambiguation_scroll_offset_;
- BeginFrameObserverProxy begin_frame_observer_proxy_;
+ // Valid only when thekEnableBeginFrameScheduling
+ scoped_ptr<BeginFrameObserverProxy> begin_frame_observer_proxy_;
// This flag when set ensures that we send over a notification to blink that
// the current view has focus. Defaults to false.

Powered by Google App Engine
This is Rietveld 408576698