OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_ | |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_ | |
7 | |
8 #include "build/build_config.h" | |
9 #include "ppapi/c/pp_point.h" | |
10 #include "ppapi/c/pp_rect.h" | |
11 #include "webkit/glue/plugins/pepper_resource.h" | |
12 | |
13 struct PP_FontDescription_Dev; | |
14 struct PPB_Private2; | |
15 | |
16 namespace pepper { | |
17 | |
18 class Private2 { | |
19 public: | |
20 // Returns a pointer to the interface implementing PPB_Private2 that is | |
21 // exposed to the plugin. | |
22 static const PPB_Private2* GetInterface(); | |
23 | |
24 static bool DrawGlyphs(PP_Resource pp_image_data, | |
25 const PP_FontDescription_Dev* font_desc, | |
26 uint32_t color, | |
27 PP_Point position, | |
28 PP_Rect clip, | |
29 const float transformation[3][3], | |
30 uint32_t glyph_count, | |
31 const uint16_t glyph_indices[], | |
32 const PP_Point glyph_advances[]) | |
33 #if defined(OS_LINUX) | |
34 ; | |
35 #else | |
36 { return false; } | |
37 #endif | |
38 }; | |
39 | |
40 } // namespace pepper | |
41 | |
42 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_ | |
OLD | NEW |