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

Unified Diff: sky/shell/ui/input_event_converter.h

Issue 932283002: Port touch-demo.sky to Dart and make it work in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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: sky/shell/ui/input_event_converter.h
diff --git a/sky/shell/ui/input_event_converter.h b/sky/shell/ui/input_event_converter.h
new file mode 100644
index 0000000000000000000000000000000000000000..05a797f0a1a8651aae6a3d08788021b901a88ba7
--- /dev/null
+++ b/sky/shell/ui/input_event_converter.h
@@ -0,0 +1,21 @@
+// 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 SKY_SHELL_UI_INPUT_EVENT_CONVERTER_H_
+#define SKY_SHELL_UI_INPUT_EVENT_CONVERTER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "sky/services/viewport/input_event.mojom.h"
+
+namespace blink {
+class WebInputEvent;
+}
+
+namespace sky {
+
+scoped_ptr<blink::WebInputEvent> ConvertEvent(const InputEventPtr& event,
+ float device_pixel_ratio);
+}
+
+#endif // SKY_SHELL_UI_INPUT_EVENT_CONVERTER_H_

Powered by Google App Engine
This is Rietveld 408576698