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

Side by Side Diff: content/browser/android/synchronous_compositor_base.h

Issue 1620053002: sync compositor: Merge input path with chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_
6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_ 6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/input/input_event_ack_state.h" 9 #include "content/common/input/input_event_ack_state.h"
10 #include "content/public/browser/android/synchronous_compositor.h" 10 #include "content/public/browser/android/synchronous_compositor.h"
11 11
12 namespace IPC { 12 namespace IPC {
13 class Message; 13 class Message;
14 } 14 }
15 15
16 namespace blink { 16 namespace blink {
17 class WebInputEvent; 17 class WebInputEvent;
18 } 18 }
19 19
20 namespace cc { 20 namespace cc {
21 struct BeginFrameArgs; 21 struct BeginFrameArgs;
22 } 22 }
23 23
24 namespace content { 24 namespace content {
25 25
26 class RenderWidgetHostViewAndroid; 26 class RenderWidgetHostViewAndroid;
27 class SynchronousCompositorStreamTextureFactoryImpl; 27 class SynchronousCompositorStreamTextureFactoryImpl;
28 class WebContents; 28 class WebContents;
29 struct DidOverscrollParams;
29 30
30 class SynchronousCompositorBase : public SynchronousCompositor { 31 class SynchronousCompositorBase : public SynchronousCompositor {
31 public: 32 public:
32 static scoped_ptr<SynchronousCompositorBase> Create( 33 static scoped_ptr<SynchronousCompositorBase> Create(
33 RenderWidgetHostViewAndroid* rwhva, 34 RenderWidgetHostViewAndroid* rwhva,
34 WebContents* web_contents); 35 WebContents* web_contents);
35 36
36 ~SynchronousCompositorBase() override {} 37 ~SynchronousCompositorBase() override {}
37 38
38 virtual void BeginFrame(const cc::BeginFrameArgs& args) = 0; 39 virtual void BeginFrame(const cc::BeginFrameArgs& args) = 0;
39 virtual InputEventAckState HandleInputEvent( 40 virtual InputEventAckState HandleInputEvent(
40 const blink::WebInputEvent& input_event) = 0; 41 const blink::WebInputEvent& input_event) = 0;
42 virtual void DidOverscroll(const DidOverscrollParams& over_scroll_params) = 0;
41 virtual bool OnMessageReceived(const IPC::Message& message) = 0; 43 virtual bool OnMessageReceived(const IPC::Message& message) = 0;
42 44
43 virtual void DidBecomeCurrent() = 0; 45 virtual void DidBecomeCurrent() = 0;
44 }; 46 };
45 47
46 } // namespace content 48 } // namespace content
47 49
48 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_ 50 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698