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

Unified Diff: content/browser/renderer_host/web_input_event_aura.cc

Issue 2097743002: Cleanup: decouple web_input_event_aura and ui_events_helper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160502-MacViews-Elastic-FILE-MOVES
Patch Set: Whoops - that comment should be kept Created 4 years, 6 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
« no previous file with comments | « content/browser/renderer_host/ui_events_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/web_input_event_aura.cc
diff --git a/content/browser/renderer_host/web_input_event_aura.cc b/content/browser/renderer_host/web_input_event_aura.cc
index e8936c6fb32a52a9620ceaf0d2065bd65bbbbd87..d60ec480670303cb022bc250948deda531702d6b 100644
--- a/content/browser/renderer_host/web_input_event_aura.cc
+++ b/content/browser/renderer_host/web_input_event_aura.cc
@@ -6,7 +6,6 @@
#include "build/build_config.h"
#include "content/browser/renderer_host/input/web_input_event_util.h"
-#include "content/browser/renderer_host/ui_events_helper.h"
#include "ui/aura/client/screen_position_client.h"
#include "ui/aura/window.h"
#include "ui/events/base_event_utils.h"
@@ -52,6 +51,16 @@ blink::WebPointerProperties::PointerType EventPointerTypeToWebPointerType(
return blink::WebPointerProperties::PointerType::Unknown;
}
+// Creates a WebGestureEvent from a ui::GestureEvent. Note that it does not
+// populate the event coordinates (i.e. |x|, |y|, |globalX|, and |globalY|). So
+// the caller must populate these fields.
tapted 2016/06/27 00:18:38 (just noticed I'd misplaced this comment, but of c
+blink::WebGestureEvent MakeWebGestureEventFromUIEvent(
+ const ui::GestureEvent& event) {
+ return ui::CreateWebGestureEvent(
+ event.details(), event.time_stamp(), event.location_f(),
+ event.root_location_f(), event.flags(), event.unique_touch_event_id());
+}
+
} // namespace
#if defined(OS_WIN)
« no previous file with comments | « content/browser/renderer_host/ui_events_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698