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

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
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. 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 double GetLocalTimeZoneOffset(PP_Instance instance, 25 virtual double GetLocalTimeZoneOffset(PP_Instance instance,
48 PP_Time t) OVERRIDE; 26 PP_Time t) OVERRIDE;
49 virtual PP_Bool IsRectTopmost(PP_Instance instance,
50 const PP_Rect* rect) OVERRIDE;
51 virtual PP_Var GetSetting(PP_Instance instance, 27 virtual PP_Var GetSetting(PP_Instance instance,
52 PP_FlashSetting setting) OVERRIDE; 28 PP_FlashSetting setting) OVERRIDE;
53 29
54 private: 30 private:
55 PluginInstance* instance_; 31 PluginInstance* instance_;
56 32
57 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); 33 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl);
58 }; 34 };
59 35
60 } // namespace ppapi 36 } // namespace ppapi
61 } // namespace webkit 37 } // namespace webkit
62 38
63 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ 39 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698