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

Unified Diff: ui/events/blink/web_input_event.h

Issue 2234023002: Refactor WebInputEventAura to ui/events/blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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: ui/events/blink/web_input_event.h
diff --git a/ui/events/blink/web_input_event.h b/ui/events/blink/web_input_event.h
new file mode 100644
index 0000000000000000000000000000000000000000..668b066a66553bf0af12486868647a9517ab7d14
--- /dev/null
+++ b/ui/events/blink/web_input_event.h
@@ -0,0 +1,49 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
sadrul 2016/08/15 15:55:13 Update
jonross 2016/08/16 15:25:16 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_EVENTS_BLINK_WEB_INPUT_EVENT_AURA_H_
+#define UI_EVENTS_BLINK_WEB_INPUT_EVENT_AURA_H_
+
+#include "base/callback.h"
+#include "third_party/WebKit/public/platform/WebInputEvent.h"
+
+namespace gfx {
+class Point;
+}
+
+namespace ui {
+class GestureEvent;
+class KeyEvent;
+class LocatedEvent;
+class MouseEvent;
+class MouseWheelEvent;
+class ScrollEvent;
+class TouchEvent;
+
+blink::WebMouseEvent MakeWebMouseEvent(
+ const MouseEvent& event,
+ const base::Callback<gfx::Point(const ui::LocatedEvent& event)>&
+ screen_location_callback);
sadrul 2016/08/15 15:55:12 Document the callback. Leave a TODO here that the
jonross 2016/08/16 15:25:16 Done.
+blink::WebMouseWheelEvent MakeWebMouseWheelEvent(
+ const MouseWheelEvent& event,
+ const base::Callback<gfx::Point(const ui::LocatedEvent& event)>&
+ screen_location_callback);
+blink::WebMouseWheelEvent MakeWebMouseWheelEvent(
+ const ScrollEvent& event,
+ const base::Callback<gfx::Point(const ui::LocatedEvent& event)>&
+ screen_location_callback);
+blink::WebKeyboardEvent MakeWebKeyboardEvent(const KeyEvent& event);
+blink::WebGestureEvent MakeWebGestureEvent(
+ const GestureEvent& event,
+ const base::Callback<gfx::Point(const ui::LocatedEvent& event)>&
+ screen_location_callback);
+blink::WebGestureEvent MakeWebGestureEvent(
+ const ScrollEvent& event,
+ const base::Callback<gfx::Point(const ui::LocatedEvent& event)>&
+ screen_location_callback);
+blink::WebGestureEvent MakeWebGestureEventFlingCancel();
+
+} // namespace ui
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_
sadrul 2016/08/15 15:55:12 Update (tools/git/mass-rename.sh should normally a
jonross 2016/08/16 15:25:16 Done.

Powered by Google App Engine
This is Rietveld 408576698