| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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_GLUE_PLUGINS_PEPPER_PRIVATE2_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" |
| 8 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 9 #include "ppapi/c/pp_point.h" | 10 #include "ppapi/c/pp_point.h" |
| 10 #include "ppapi/c/pp_rect.h" | 11 #include "ppapi/c/pp_rect.h" |
| 11 #include "webkit/glue/plugins/pepper_resource.h" | 12 #include "webkit/plugins/ppapi/resource.h" |
| 12 | 13 |
| 13 struct PP_FontDescription_Dev; | 14 struct PP_FontDescription_Dev; |
| 14 struct PPB_Private2; | 15 struct PPB_Flash; |
| 15 | 16 |
| 16 namespace pepper { | 17 namespace webkit { |
| 18 namespace plugins { |
| 19 namespace ppapi { |
| 17 | 20 |
| 18 class Private2 { | 21 class PPB_Flash_Impl { |
| 19 public: | 22 public: |
| 20 // Returns a pointer to the interface implementing PPB_Private2 that is | 23 // Returns a pointer to the interface implementing PPB_Flash that is |
| 21 // exposed to the plugin. | 24 // exposed to the plugin. |
| 22 static const PPB_Private2* GetInterface(); | 25 static const PPB_Flash* GetInterface(); |
| 23 | 26 |
| 24 static bool DrawGlyphs(PP_Resource pp_image_data, | 27 static bool DrawGlyphs(PP_Resource pp_image_data, |
| 25 const PP_FontDescription_Dev* font_desc, | 28 const PP_FontDescription_Dev* font_desc, |
| 26 uint32_t color, | 29 uint32_t color, |
| 27 PP_Point position, | 30 PP_Point position, |
| 28 PP_Rect clip, | 31 PP_Rect clip, |
| 29 const float transformation[3][3], | 32 const float transformation[3][3], |
| 30 uint32_t glyph_count, | 33 uint32_t glyph_count, |
| 31 const uint16_t glyph_indices[], | 34 const uint16_t glyph_indices[], |
| 32 const PP_Point glyph_advances[]) | 35 const PP_Point glyph_advances[]) |
| 33 #if defined(OS_LINUX) | 36 #if defined(OS_LINUX) |
| 34 ; | 37 ; |
| 35 #else | 38 #else |
| 36 { return false; } | 39 { return false; } |
| 37 #endif | 40 #endif |
| 41 |
| 42 private: |
| 43 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); |
| 38 }; | 44 }; |
| 39 | 45 |
| 40 } // namespace pepper | 46 } // namespace ppapi |
| 47 } // namespace plugins |
| 48 } // namespace webkit |
| 41 | 49 |
| 42 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_ | 50 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ |
| OLD | NEW |