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 WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "ppapi/c/pp_point.h" | 10 #include "ppapi/c/pp_point.h" |
11 #include "ppapi/c/pp_rect.h" | 11 #include "ppapi/c/pp_rect.h" |
12 #include "ppapi/c/private/ppb_flash.h" | 12 #include "ppapi/c/private/ppb_flash.h" |
13 | 13 |
14 namespace webkit { | 14 namespace webkit { |
15 namespace ppapi { | 15 namespace ppapi { |
16 | 16 |
17 class PPB_Flash_Impl { | 17 class PPB_Flash_Impl { |
18 public: | 18 public: |
19 // Returns a pointer to the interface implementing PPB_Flash that is | 19 // Returns a pointer to the interface implementing PPB_Flash that is |
20 // exposed to the plugin. | 20 // exposed to the plugin. |
21 static const PPB_Flash* GetInterface(); | 21 static const PPB_Flash* GetInterface(); |
22 | 22 |
23 static PP_Bool DrawGlyphs(PP_Instance pp_instance, | |
24 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_POSIX) && !defined(OS_MACOSX) | |
34 ; | |
35 #else | |
36 { return PP_FALSE; } | |
37 #endif | |
38 | |
39 private: | 23 private: |
40 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); | 24 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); |
41 }; | 25 }; |
42 | 26 |
43 } // namespace ppapi | 27 } // namespace ppapi |
44 } // namespace webkit | 28 } // namespace webkit |
45 | 29 |
46 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ | 30 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ |
OLD | NEW |