OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_ |
| 7 |
| 8 #include "base/memory/scoped_vector.h" |
| 9 |
| 10 namespace WebKit { |
| 11 class WebTouchEvent; |
| 12 } |
| 13 |
| 14 namespace ui { |
| 15 class TouchEvent; |
| 16 } |
| 17 |
| 18 namespace content { |
| 19 |
| 20 // Creates a list of ui::TouchEvents out of a single WebTouchEvent. |
| 21 // A WebTouchEvent can contain information about a number of WebTouchPoints, |
| 22 // whereas a ui::TouchEvent contains information about a single touch-point. So |
| 23 // it is possible to create more than one ui::TouchEvents out of a single |
| 24 // WebTouchEvent. |
| 25 bool MakeUITouchEventsFromWebTouchEvents(const WebKit::WebTouchEvent& touch, |
| 26 ScopedVector<ui::TouchEvent>* list); |
| 27 } |
| 28 |
| 29 #endif // CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_ |
OLD | NEW |