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

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

Issue 2683043004: Remove ui/events/blink dependency on blink_minimal. (Closed)
Patch Set: fix win debug Created 3 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: ui/events/blink/web_input_event_traits.h
diff --git a/ui/events/blink/web_input_event_traits.h b/ui/events/blink/web_input_event_traits.h
index 717cf91529f4b5c872838646ee9a0b5ac61b71b8..f28defb3fde288dc22d78b2d26e7cb9ea0ab764b 100644
--- a/ui/events/blink/web_input_event_traits.h
+++ b/ui/events/blink/web_input_event_traits.h
@@ -5,7 +5,6 @@
#ifndef UI_EVENTS_BLINK_WEB_INPUT_EVENT_TRAITS_H_
#define UI_EVENTS_BLINK_WEB_INPUT_EVENT_TRAITS_H_
-#include "third_party/WebKit/public/platform/WebCoalescedInputEvent.h"
#include "third_party/WebKit/public/platform/WebInputEvent.h"
#include "ui/events/latency_info.h"
@@ -16,13 +15,19 @@ class WebMouseWheelEvent;
namespace ui {
+struct WebInputEventDeleter {
+ void operator()(blink::WebInputEvent*) const;
+};
+
+using WebScopedInputEvent =
+ std::unique_ptr<blink::WebInputEvent, WebInputEventDeleter>;
+
// Utility class for performing operations on and with WebInputEvents.
class WebInputEventTraits {
public:
static std::string ToString(const blink::WebInputEvent& event);
static size_t GetSize(blink::WebInputEvent::Type type);
- static blink::WebScopedInputEvent Clone(const blink::WebInputEvent& event);
- static void Delete(blink::WebInputEvent* event);
+ static WebScopedInputEvent Clone(const blink::WebInputEvent& event);
static bool ShouldBlockEventStream(const blink::WebInputEvent& event);
static bool CanCauseScroll(const blink::WebMouseWheelEvent& event);

Powered by Google App Engine
This is Rietveld 408576698