OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef PPAPI_CPP_TOUCH_POINT_H_ | 5 #ifndef PPAPI_CPP_TOUCH_POINT_H_ |
6 #define PPAPI_CPP_TOUCH_POINT_H_ | 6 #define PPAPI_CPP_TOUCH_POINT_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "ppapi/c/ppb_input_event.h" | 10 #include "ppapi/c/ppb_input_event.h" |
9 #include "ppapi/cpp/input_event.h" | 11 #include "ppapi/cpp/input_event.h" |
10 #include "ppapi/cpp/point.h" | 12 #include "ppapi/cpp/point.h" |
11 | 13 |
12 namespace pp { | 14 namespace pp { |
13 | 15 |
14 /// Wrapper class for PP_TouchPoint. | 16 /// Wrapper class for PP_TouchPoint. |
15 class TouchPoint { | 17 class TouchPoint { |
16 public: | 18 public: |
17 TouchPoint() : touch_point_(PP_MakeTouchPoint()) {} | 19 TouchPoint() : touch_point_(PP_MakeTouchPoint()) {} |
(...skipping 27 matching lines...) Expand all Loading... |
45 /// the value is not guaranteed to stay within that range. | 47 /// the value is not guaranteed to stay within that range. |
46 float pressure() const { return touch_point_.pressure; } | 48 float pressure() const { return touch_point_.pressure; } |
47 | 49 |
48 private: | 50 private: |
49 PP_TouchPoint touch_point_; | 51 PP_TouchPoint touch_point_; |
50 }; | 52 }; |
51 | 53 |
52 } // namespace pp | 54 } // namespace pp |
53 | 55 |
54 #endif /* PPAPI_CPP_TOUCH_POINT_H_ */ | 56 #endif /* PPAPI_CPP_TOUCH_POINT_H_ */ |
OLD | NEW |