Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: webkit/plugins/ppapi/ppb_flash_impl.h

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash.h ('k') | webkit/plugins/ppapi/ppb_flash_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ppapi {
17 19
18 class Private2 { 20 class PPB_Flash_Impl {
19 public: 21 public:
20 // Returns a pointer to the interface implementing PPB_Private2 that is 22 // Returns a pointer to the interface implementing PPB_Flash that is
21 // exposed to the plugin. 23 // exposed to the plugin.
22 static const PPB_Private2* GetInterface(); 24 static const PPB_Flash* GetInterface();
23 25
24 static bool DrawGlyphs(PP_Resource pp_image_data, 26 static bool DrawGlyphs(PP_Resource pp_image_data,
25 const PP_FontDescription_Dev* font_desc, 27 const PP_FontDescription_Dev* font_desc,
26 uint32_t color, 28 uint32_t color,
27 PP_Point position, 29 PP_Point position,
28 PP_Rect clip, 30 PP_Rect clip,
29 const float transformation[3][3], 31 const float transformation[3][3],
30 uint32_t glyph_count, 32 uint32_t glyph_count,
31 const uint16_t glyph_indices[], 33 const uint16_t glyph_indices[],
32 const PP_Point glyph_advances[]) 34 const PP_Point glyph_advances[])
33 #if defined(OS_LINUX) 35 #if defined(OS_LINUX)
34 ; 36 ;
35 #else 37 #else
36 { return false; } 38 { return false; }
37 #endif 39 #endif
40
41 private:
42 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl);
38 }; 43 };
39 44
40 } // namespace pepper 45 } // namespace ppapi
46 } // namespace webkit
41 47
42 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_ 48 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash.h ('k') | webkit/plugins/ppapi/ppb_flash_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698