| OLD | NEW |
| (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_ |
| OLD | NEW |