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

Unified Diff: third_party/WebKit/public/platform/WebCoalescedInputEvent.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: third_party/WebKit/public/platform/WebCoalescedInputEvent.h
diff --git a/third_party/WebKit/public/platform/WebCoalescedInputEvent.h b/third_party/WebKit/public/platform/WebCoalescedInputEvent.h
index e1a282a542c6f01cd7fa08d2fe06723689344ddb..3234c2b5ed432cc5b17ba5f9d8809427f1e7b0cd 100644
--- a/third_party/WebKit/public/platform/WebCoalescedInputEvent.h
+++ b/third_party/WebKit/public/platform/WebCoalescedInputEvent.h
@@ -13,18 +13,10 @@
namespace blink {
-struct BLINK_COMMON_EXPORT WebInputEventDeleter {
- void operator()(blink::WebInputEvent*) const;
-};
-
-using WebScopedInputEvent =
- std::unique_ptr<WebInputEvent, WebInputEventDeleter>;
-
// This class is representing a polymorphic WebInputEvent structure with its
// coalesced events. The event could be any events defined in WebInputEvent.h.
-class BLINK_COMMON_EXPORT WebCoalescedInputEvent {
+class BLINK_PLATFORM_EXPORT WebCoalescedInputEvent {
public:
- explicit WebCoalescedInputEvent(WebScopedInputEvent);
explicit WebCoalescedInputEvent(const WebInputEvent&);
WebCoalescedInputEvent(const WebInputEvent&,
const std::vector<const WebInputEvent*>&);
@@ -37,6 +29,15 @@ class BLINK_COMMON_EXPORT WebCoalescedInputEvent {
std::vector<const WebInputEvent*> getCoalescedEventsPointers() const;
private:
+ struct WebInputEventDeleter {
Reid Kleckner 2017/02/14 02:14:45 It looks like you need to add BLINK_PLATFORM_EXPOR
dcheng 2017/02/14 02:21:10 I think thakis already submitted a cl for this: ht
+ void operator()(blink::WebInputEvent*) const;
+ };
+
+ using WebScopedInputEvent =
+ std::unique_ptr<WebInputEvent, WebInputEventDeleter>;
+
+ WebScopedInputEvent makeWebScopedInputEvent(const blink::WebInputEvent&);
+
WebScopedInputEvent m_event;
std::vector<WebScopedInputEvent> m_coalescedEvents;
};

Powered by Google App Engine
This is Rietveld 408576698