| 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_TRUSTED_BROWSER_FONT_TRUSTED_H_ | 5 #ifndef PPAPI_CPP_TRUSTED_BROWSER_FONT_TRUSTED_H_ |
| 6 #define PPAPI_CPP_TRUSTED_BROWSER_FONT_TRUSTED_H_ | 6 #define PPAPI_CPP_TRUSTED_BROWSER_FONT_TRUSTED_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" | 12 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" |
| 11 #include "ppapi/cpp/resource.h" | 13 #include "ppapi/cpp/resource.h" |
| 12 #include "ppapi/cpp/var.h" | 14 #include "ppapi/cpp/var.h" |
| 13 | 15 |
| 14 namespace pp { | 16 namespace pp { |
| 15 | 17 |
| 16 class ImageData; | 18 class ImageData; |
| 17 class InstanceHandle; | 19 class InstanceHandle; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 uint32_t color, | 140 uint32_t color, |
| 139 bool image_data_is_opaque = false) const; | 141 bool image_data_is_opaque = false) const; |
| 140 | 142 |
| 141 // Convenience function that assumes a left-to-right string. | 143 // Convenience function that assumes a left-to-right string. |
| 142 int32_t MeasureSimpleText(const std::string& text) const; | 144 int32_t MeasureSimpleText(const std::string& text) const; |
| 143 }; | 145 }; |
| 144 | 146 |
| 145 } // namespace pp | 147 } // namespace pp |
| 146 | 148 |
| 147 #endif // PPAPI_CPP_TRUSTED_BROWSER_FONT_TRUSTED_H_ | 149 #endif // PPAPI_CPP_TRUSTED_BROWSER_FONT_TRUSTED_H_ |
| OLD | NEW |