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

Side by Side Diff: ppapi/cpp/touch_point.h

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 12 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
« no previous file with comments | « ppapi/cpp/text_input_controller.h ('k') | ppapi/cpp/trusted/browser_font_trusted.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_ */
OLDNEW
« no previous file with comments | « ppapi/cpp/text_input_controller.h ('k') | ppapi/cpp/trusted/browser_font_trusted.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698