| Index: content/browser/android/synchronous_compositor_base.h
|
| diff --git a/content/browser/android/synchronous_compositor_base.h b/content/browser/android/synchronous_compositor_base.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1da2aee4f8837f1f4d5b93c3d757d85c2542af22
|
| --- /dev/null
|
| +++ b/content/browser/android/synchronous_compositor_base.h
|
| @@ -0,0 +1,45 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_
|
| +#define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "content/common/input/input_event_ack_state.h"
|
| +#include "content/public/browser/android/synchronous_compositor.h"
|
| +
|
| +namespace IPC {
|
| +class Message;
|
| +}
|
| +
|
| +namespace blink {
|
| +class WebInputEvent;
|
| +}
|
| +
|
| +namespace cc {
|
| +struct BeginFrameArgs;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +class RenderWidgetHostViewAndroid;
|
| +class WebContents;
|
| +
|
| +class SynchronousCompositorBase : public SynchronousCompositor {
|
| + public:
|
| + static scoped_ptr<SynchronousCompositorBase> Create(
|
| + RenderWidgetHostViewAndroid* rwhva,
|
| + WebContents* web_contents);
|
| +
|
| + ~SynchronousCompositorBase() override {}
|
| +
|
| + virtual void BeginFrame(const cc::BeginFrameArgs& args) = 0;
|
| + virtual InputEventAckState HandleInputEvent(
|
| + const blink::WebInputEvent& input_event) = 0;
|
| + virtual bool OnMessageReceived(const IPC::Message& message) = 0;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_
|
|
|