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

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

Issue 2576013002: Introducing WebCoalescedInputEvent and inclusion in content/common (Closed)
Patch Set: Created 4 years 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.cc
diff --git a/ui/events/blink/web_input_event_traits.cc b/ui/events/blink/web_input_event_traits.cc
index 58d95c9e2f3d75c41e38644a9ce096f60c813cea..20e12b53e59f05c92f53ac71c0995db0774a4672 100644
--- a/ui/events/blink/web_input_event_traits.cc
+++ b/ui/events/blink/web_input_event_traits.cc
@@ -135,17 +135,6 @@ struct WebInputEventClone {
}
};
-struct WebInputEventDelete {
- template <class EventType>
- bool Execute(WebInputEvent* event, bool* /* dummy_var */) const {
- if (!event)
- return false;
- DCHECK_EQ(sizeof(EventType), event->size);
- delete static_cast<EventType*>(event);
- return true;
- }
-};
-
template <typename Operator, typename ArgIn, typename ArgOut>
bool Apply(Operator op,
WebInputEvent::Type type,
@@ -186,13 +175,6 @@ ScopedWebInputEvent WebInputEventTraits::Clone(const WebInputEvent& event) {
return scoped_event;
}
-void WebInputEventTraits::Delete(WebInputEvent* event) {
- if (!event)
- return;
- bool dummy_var = false;
- Apply(WebInputEventDelete(), event->type, event, &dummy_var);
-}
-
bool WebInputEventTraits::ShouldBlockEventStream(const WebInputEvent& event) {
switch (event.type) {
case WebInputEvent::MouseDown:

Powered by Google App Engine
This is Rietveld 408576698