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

Unified Diff: blimp/client/core/render_widget/blimp_render_widget_delegate.h

Issue 2241623002: blimp: Move compositing, input and render widget feature to client/core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar gn fix Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698