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 "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "ppapi/c/pp_point.h" | 11 #include "ppapi/c/pp_point.h" |
12 #include "ppapi/c/pp_rect.h" | 12 #include "ppapi/c/pp_rect.h" |
13 #include "ppapi/c/private/ppb_flash.h" | 13 #include "ppapi/c/private/ppb_flash.h" |
14 #include "webkit/plugins/ppapi/callbacks.h" | 14 #include "webkit/plugins/ppapi/callbacks.h" |
15 #include "webkit/plugins/ppapi/resource.h" | 15 #include "webkit/plugins/ppapi/resource.h" |
16 | 16 |
17 namespace webkit { | 17 namespace webkit { |
18 namespace ppapi { | 18 namespace ppapi { |
19 | 19 |
20 class PPB_Flash_Impl { | 20 class PPB_Flash_Impl { |
21 public: | 21 public: |
22 // Returns a pointer to the interface implementing PPB_Flash that is | 22 // Returns a pointer to the interface implementing PPB_Flash that is |
23 // exposed to the plugin. | 23 // exposed to the plugin. |
24 static const PPB_Flash* GetInterface(); | 24 static const PPB_Flash* GetInterface(); |
25 | 25 |
26 static bool DrawGlyphs(PP_Instance pp_instance, | 26 static PP_Bool DrawGlyphs(PP_Instance pp_instance, |
27 PP_Resource pp_image_data, | 27 PP_Resource pp_image_data, |
28 const PP_FontDescription_Dev* font_desc, | 28 const PP_FontDescription_Dev* font_desc, |
29 uint32_t color, | 29 uint32_t color, |
30 PP_Point position, | 30 PP_Point position, |
31 PP_Rect clip, | 31 PP_Rect clip, |
32 const float transformation[3][3], | 32 const float transformation[3][3], |
33 uint32_t glyph_count, | 33 uint32_t glyph_count, |
34 const uint16_t glyph_indices[], | 34 const uint16_t glyph_indices[], |
35 const PP_Point glyph_advances[]) | 35 const PP_Point glyph_advances[]) |
36 #if defined(OS_LINUX) | 36 #if defined(OS_LINUX) |
37 ; | 37 ; |
38 #else | 38 #else |
39 { return false; } | 39 { return PP_FALSE; } |
40 #endif | 40 #endif |
41 | 41 |
42 private: | 42 private: |
43 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); | 43 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); |
44 }; | 44 }; |
45 | 45 |
46 class PPB_Flash_NetConnector_Impl : public Resource { | 46 class PPB_Flash_NetConnector_Impl : public Resource { |
47 public: | 47 public: |
48 explicit PPB_Flash_NetConnector_Impl(PluginInstance* instance); | 48 explicit PPB_Flash_NetConnector_Impl(PluginInstance* instance); |
49 virtual ~PPB_Flash_NetConnector_Impl(); | 49 virtual ~PPB_Flash_NetConnector_Impl(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 PP_Flash_NetAddress* local_addr_out_; | 81 PP_Flash_NetAddress* local_addr_out_; |
82 PP_Flash_NetAddress* remote_addr_out_; | 82 PP_Flash_NetAddress* remote_addr_out_; |
83 | 83 |
84 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_NetConnector_Impl); | 84 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_NetConnector_Impl); |
85 }; | 85 }; |
86 | 86 |
87 } // namespace ppapi | 87 } // namespace ppapi |
88 } // namespace webkit | 88 } // namespace webkit |
89 | 89 |
90 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ | 90 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ |
OLD | NEW |