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

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

Issue 11510008: Refactor 4 PPB_Flash functions to the new PPAPI resource model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | « ppapi/thunk/ppb_flash_thunk.cc ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "ppapi/thunk/ppb_flash_api.h" 12 #include "ppapi/thunk/ppb_flash_api.h"
13 13
14 namespace webkit { 14 namespace webkit {
15 namespace ppapi { 15 namespace ppapi {
16 16
17 class PluginInstance; 17 class PluginInstance;
18 18
19 class PPB_Flash_Impl : public ::ppapi::thunk::PPB_Flash_API { 19 class PPB_Flash_Impl : public ::ppapi::thunk::PPB_Flash_API {
20 public: 20 public:
21 explicit PPB_Flash_Impl(PluginInstance* instance); 21 explicit PPB_Flash_Impl(PluginInstance* instance);
22 virtual ~PPB_Flash_Impl(); 22 virtual ~PPB_Flash_Impl();
23 23
24 // PPB_Flash_API.
25 virtual void SetInstanceAlwaysOnTop(PP_Instance instance,
26 PP_Bool on_top) OVERRIDE;
27 virtual PP_Bool DrawGlyphs(
28 PP_Instance instance,
29 PP_Resource pp_image_data,
30 const PP_BrowserFont_Trusted_Description* font_desc,
31 uint32_t color,
32 const PP_Point* position,
33 const PP_Rect* clip,
34 const float transformation[3][3],
35 PP_Bool allow_subpixel_aa,
36 uint32_t glyph_count,
37 const uint16_t glyph_indices[],
38 const PP_Point glyph_advances[]) OVERRIDE;
39 virtual int32_t Navigate(PP_Instance instance,
40 PP_Resource request_info,
41 const char* target,
42 PP_Bool from_user_action) OVERRIDE;
43 virtual int32_t Navigate(PP_Instance instance,
44 const ::ppapi::URLRequestInfoData& data,
45 const char* target,
46 PP_Bool from_user_action) OVERRIDE;
47 virtual PP_Bool IsRectTopmost(PP_Instance instance,
48 const PP_Rect* rect) OVERRIDE;
49
50 private:
51 PluginInstance* instance_;
52
53 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); 24 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl);
54 }; 25 };
55 26
56 } // namespace ppapi 27 } // namespace ppapi
57 } // namespace webkit 28 } // namespace webkit
58 29
59 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ 30 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_flash_thunk.cc ('k') | webkit/plugins/ppapi/ppb_flash_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698