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

Side by Side Diff: content/common/input/web_touch_event_traits.cc

Issue 2639273002: Give WebTouchEvent and WebKeyboardEvent their own headers (Closed)
Patch Set: Rebase Created 3 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/common/input/web_touch_event_traits.h" 5 #include "content/common/input/web_touch_event_traits.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "third_party/WebKit/public/platform/WebTouchEvent.h"
10 11
11 using blink::WebInputEvent; 12 using blink::WebInputEvent;
12 using blink::WebTouchEvent; 13 using blink::WebTouchEvent;
13 using blink::WebTouchPoint; 14 using blink::WebTouchPoint;
14 15
15 namespace content { 16 namespace content {
16 17
17 bool WebTouchEventTraits::AllTouchPointsHaveState( 18 bool WebTouchEventTraits::AllTouchPointsHaveState(
18 const WebTouchEvent& event, 19 const WebTouchEvent& event,
19 blink::WebTouchPoint::State state) { 20 blink::WebTouchPoint::State state) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 break; 83 break;
83 default: 84 default:
84 NOTREACHED(); 85 NOTREACHED();
85 break; 86 break;
86 } 87 }
87 for (size_t i = 0; i < event->touchesLength; ++i) 88 for (size_t i = 0; i < event->touchesLength; ++i)
88 event->touches[i].state = newState; 89 event->touches[i].state = newState;
89 } 90 }
90 91
91 } // namespace content 92 } // namespace content
OLDNEW
« no previous file with comments | « content/common/input/web_touch_event_traits.h ('k') | content/public/browser/native_web_keyboard_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698