| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_POINT_H_ | 5 #ifndef PPAPI_CPP_POINT_H_ |
| 6 #define PPAPI_CPP_POINT_H_ | 6 #define PPAPI_CPP_POINT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "ppapi/c/pp_point.h" | 10 #include "ppapi/c/pp_point.h" |
| 9 | 11 |
| 10 /// @file | 12 /// @file |
| 11 /// This file defines the API to create a 2 dimensional point. | 13 /// This file defines the API to create a 2 dimensional point. |
| 12 | 14 |
| 13 namespace pp { | 15 namespace pp { |
| 14 | 16 |
| 15 /// A 2 dimensional point with 0,0 being the upper-left starting coordinate. | 17 /// A 2 dimensional point with 0,0 being the upper-left starting coordinate. |
| 16 class Point { | 18 class Point { |
| 17 public: | 19 public: |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 /// @param[in] lhs The Point on the left-hand side of the equation. | 329 /// @param[in] lhs The Point on the left-hand side of the equation. |
| 328 /// @param[in] rhs The Point on the right-hand side of the equation. | 330 /// @param[in] rhs The Point on the right-hand side of the equation. |
| 329 /// | 331 /// |
| 330 /// @return true if the coordinates of lhs are equal to the coordinates | 332 /// @return true if the coordinates of lhs are equal to the coordinates |
| 331 /// of rhs, otherwise false. | 333 /// of rhs, otherwise false. |
| 332 inline bool operator!=(const pp::FloatPoint& lhs, const pp::FloatPoint& rhs) { | 334 inline bool operator!=(const pp::FloatPoint& lhs, const pp::FloatPoint& rhs) { |
| 333 return !(lhs == rhs); | 335 return !(lhs == rhs); |
| 334 } | 336 } |
| 335 | 337 |
| 336 #endif // PPAPI_CPP_POINT_H_ | 338 #endif // PPAPI_CPP_POINT_H_ |
| OLD | NEW |