OLD | NEW |
1 // Copyright (c) 2010 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_DEV_FONT_DEV_H_ | 5 #ifndef PPAPI_CPP_DEV_FONT_DEV_H_ |
6 #define PPAPI_CPP_DEV_FONT_DEV_H_ | 6 #define PPAPI_CPP_DEV_FONT_DEV_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ppapi/c/dev/ppb_font_dev.h" | 10 #include "ppapi/c/dev/ppb_font_dev.h" |
11 #include "ppapi/cpp/resource.h" | 11 #include "ppapi/cpp/resource.h" |
12 #include "ppapi/cpp/var.h" | 12 #include "ppapi/cpp/var.h" |
13 | 13 |
14 struct PP_FontDescription_Dev; | 14 struct PP_FontDescription_Dev; |
15 | 15 |
16 namespace pp { | 16 namespace pp { |
17 | 17 |
18 class Font_dev; | |
19 class ImageData; | 18 class ImageData; |
20 class Instance; | 19 class Instance; |
21 class Point; | 20 class Point; |
22 class Rect; | 21 class Rect; |
23 | 22 |
24 // FontDescription_Dev --------------------------------------------------------- | 23 // FontDescription_Dev --------------------------------------------------------- |
25 | 24 |
26 class FontDescription_Dev { | 25 class FontDescription_Dev { |
27 public: | 26 public: |
28 FontDescription_Dev(); | 27 FontDescription_Dev(); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 uint32_t color, | 131 uint32_t color, |
133 bool image_data_is_opaque = false) const; | 132 bool image_data_is_opaque = false) const; |
134 | 133 |
135 // Convenience function that assumes a left-to-right string. | 134 // Convenience function that assumes a left-to-right string. |
136 int32_t MeasureSimpleText(const std::string& text) const; | 135 int32_t MeasureSimpleText(const std::string& text) const; |
137 }; | 136 }; |
138 | 137 |
139 } // namespace pp | 138 } // namespace pp |
140 | 139 |
141 #endif // PPAPI_CPP_DEV_FONT_DEV_H_ | 140 #endif // PPAPI_CPP_DEV_FONT_DEV_H_ |
OLD | NEW |