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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebCoalescedInputEvent.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "public/platform/WebCoalescedInputEvent.h" 5 #include "public/platform/WebCoalescedInputEvent.h"
6 6
7 #include "public/platform/WebGestureEvent.h" 7 #include "public/platform/WebGestureEvent.h"
8 #include "public/platform/WebKeyboardEvent.h" 8 #include "public/platform/WebKeyboardEvent.h"
9 #include "public/platform/WebMouseWheelEvent.h" 9 #include "public/platform/WebMouseWheelEvent.h"
10 #include "public/platform/WebTouchEvent.h" 10 #include "public/platform/WebTouchEvent.h"
(...skipping 22 matching lines...) Expand all
33 if (WebInputEvent::IsKeyboardEventType(type)) 33 if (WebInputEvent::IsKeyboardEventType(type))
34 return op.template Execute<WebKeyboardEvent>(arg_in); 34 return op.template Execute<WebKeyboardEvent>(arg_in);
35 if (WebInputEvent::IsTouchEventType(type)) 35 if (WebInputEvent::IsTouchEventType(type))
36 return op.template Execute<WebTouchEvent>(arg_in); 36 return op.template Execute<WebTouchEvent>(arg_in);
37 if (WebInputEvent::IsGestureEventType(type)) 37 if (WebInputEvent::IsGestureEventType(type))
38 return op.template Execute<WebGestureEvent>(arg_in); 38 return op.template Execute<WebGestureEvent>(arg_in);
39 39
40 NOTREACHED() << "Unknown webkit event type " << type; 40 NOTREACHED() << "Unknown webkit event type " << type;
41 return false; 41 return false;
42 } 42 }
43 } 43 } // namespace
44 44
45 void WebCoalescedInputEvent::WebInputEventDeleter::operator()( 45 void WebCoalescedInputEvent::WebInputEventDeleter::operator()(
46 WebInputEvent* event) const { 46 WebInputEvent* event) const {
47 if (!event) 47 if (!event)
48 return; 48 return;
49 Apply(WebInputEventDelete(), event->GetType(), event); 49 Apply(WebInputEventDelete(), event->GetType(), event);
50 } 50 }
51 51
52 WebInputEvent* WebCoalescedInputEvent::EventPointer() { 52 WebInputEvent* WebCoalescedInputEvent::EventPointer() {
53 return event_.get(); 53 return event_.get();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } 118 }
119 if (blink::WebInputEvent::IsKeyboardEventType(event.GetType())) { 119 if (blink::WebInputEvent::IsKeyboardEventType(event.GetType())) {
120 return WebScopedInputEvent(new blink::WebKeyboardEvent( 120 return WebScopedInputEvent(new blink::WebKeyboardEvent(
121 static_cast<const blink::WebKeyboardEvent&>(event))); 121 static_cast<const blink::WebKeyboardEvent&>(event)));
122 } 122 }
123 NOTREACHED(); 123 NOTREACHED();
124 return WebScopedInputEvent(); 124 return WebScopedInputEvent();
125 } 125 }
126 126
127 } // namespace blink 127 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698