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

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

Issue 1408123005: Android Webview IPC-based sync compositing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win compile Created 5 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_
6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/input/input_event_ack_state.h"
10 #include "content/public/browser/android/synchronous_compositor.h"
11
12 namespace IPC {
13 class Message;
14 }
15
16 namespace blink {
17 class WebInputEvent;
18 }
19
20 namespace cc {
21 struct BeginFrameArgs;
22 }
23
24 namespace content {
25
26 class RenderWidgetHostViewAndroid;
27 class WebContents;
28
29 class SynchronousCompositorBase : public SynchronousCompositor {
30 public:
31 static scoped_ptr<SynchronousCompositorBase> Create(
32 RenderWidgetHostViewAndroid* rwhva,
33 WebContents* web_contents);
34
35 ~SynchronousCompositorBase() override {}
36
37 virtual void BeginFrame(const cc::BeginFrameArgs& args) = 0;
38 virtual InputEventAckState HandleInputEvent(
39 const blink::WebInputEvent& input_event) = 0;
40 virtual bool OnMessageReceived(const IPC::Message& message) = 0;
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698