Index: blimp/client/core/render_widget/blimp_render_widget_delegate.h |
diff --git a/blimp/client/core/render_widget/blimp_render_widget_delegate.h b/blimp/client/core/render_widget/blimp_render_widget_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a1d282a489237a9b2801f4e2ed2335353c054657 |
--- /dev/null |
+++ b/blimp/client/core/render_widget/blimp_render_widget_delegate.h |
@@ -0,0 +1,46 @@ |
+// Copyright 2016 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 BLIMP_CLIENT_CORE_RENDER_WIDGET_BLIMP_RENDER_WIDGET_DELEGATE_H_ |
+#define BLIMP_CLIENT_CORE_RENDER_WIDGET_BLIMP_RENDER_WIDGET_DELEGATE_H_ |
+ |
+#include "base/macros.h" |
+ |
+namespace blink { |
+class WebGestureEvent; |
+} // namespace blink |
+ |
+namespace cc { |
+namespace proto { |
+class CompositorMessage; |
+} // namespace proto |
+} // namespace cc |
+ |
+namespace blimp { |
+namespace client { |
+class BlimpRenderWidget; |
+ |
+class BlimpRenderWidgetDelegate { |
+ public: |
+ virtual ~BlimpRenderWidgetDelegate() {} |
+ |
+ // Should send web gesture events which could not be handled locally by the |
+ // compositor to the engine. |
+ virtual void SendWebGestureEvent( |
+ BlimpRenderWidget* render_widget, |
+ const blink::WebGestureEvent& gesture_event) = 0; |
+ |
+ // Should send the compositor messages from the remote client LayerTreeHost of |
+ // this compositor to the corresponding remote server LayerTreeHost. |
+ virtual void SendCompositorMessage( |
+ BlimpRenderWidget* render_widget, |
+ const cc::proto::CompositorMessage& message) = 0; |
+ |
+ virtual void CompositorDidCompleteSwapBuffers() = 0; |
+}; |
+ |
+} // namespace client |
+} // namespace blimp |
+ |
+#endif // BLIMP_CLIENT_CORE_RENDER_WIDGET_BLIMP_RENDER_WIDGET_DELEGATE_H_ |