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

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

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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/shared_impl/ppb_flash_shared.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::PPB_Flash_Shared { 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, 25 virtual void SetInstanceAlwaysOnTop(PP_Instance instance,
26 PP_Bool on_top) OVERRIDE; 26 PP_Bool on_top) OVERRIDE;
27 virtual PP_Bool DrawGlyphs(PP_Instance instance, 27 virtual PP_Bool DrawGlyphs(PP_Instance instance,
28 PP_Resource pp_image_data, 28 PP_Resource pp_image_data,
29 const PP_FontDescription_Dev* font_desc, 29 const PP_FontDescription_Dev* font_desc,
(...skipping 22 matching lines...) Expand all
52 const PP_Rect* rect) OVERRIDE; 52 const PP_Rect* rect) OVERRIDE;
53 virtual void UpdateActivity(PP_Instance instance) OVERRIDE; 53 virtual void UpdateActivity(PP_Instance instance) OVERRIDE;
54 virtual PP_Var GetDeviceID(PP_Instance instance) OVERRIDE; 54 virtual PP_Var GetDeviceID(PP_Instance instance) OVERRIDE;
55 virtual int32_t GetSettingInt(PP_Instance instance, 55 virtual int32_t GetSettingInt(PP_Instance instance,
56 PP_FlashSetting setting) OVERRIDE; 56 PP_FlashSetting setting) OVERRIDE;
57 virtual PP_Var GetSetting(PP_Instance instance, 57 virtual PP_Var GetSetting(PP_Instance instance,
58 PP_FlashSetting setting) OVERRIDE; 58 PP_FlashSetting setting) OVERRIDE;
59 virtual PP_Bool SetCrashData(PP_Instance instance, 59 virtual PP_Bool SetCrashData(PP_Instance instance,
60 PP_FlashCrashKey key, 60 PP_FlashCrashKey key,
61 PP_Var value) OVERRIDE; 61 PP_Var value) OVERRIDE;
62 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) OVERRIDE;
63 virtual void ClearThreadAdapterForInstance(PP_Instance instance) OVERRIDE;
64 virtual int32_t OpenFile(PP_Instance instance,
65 const char* path,
66 int32_t mode,
67 PP_FileHandle* file) OVERRIDE;
68 virtual int32_t RenameFile(PP_Instance instance,
69 const char* path_from,
70 const char* path_to) OVERRIDE;
71 virtual int32_t DeleteFileOrDir(PP_Instance instance,
72 const char* path,
73 PP_Bool recursive) OVERRIDE;
74 virtual int32_t CreateDir(PP_Instance instance, const char* path) OVERRIDE;
75 virtual int32_t QueryFile(PP_Instance instance,
76 const char* path,
77 PP_FileInfo* info) OVERRIDE;
78 virtual int32_t GetDirContents(PP_Instance instance,
79 const char* path,
80 PP_DirContents_Dev** contents) OVERRIDE;
81 virtual int32_t CreateTemporaryFile(PP_Instance instance,
82 PP_FileHandle* file) OVERRIDE;
83 virtual int32_t OpenFileRef(PP_Instance instance,
84 PP_Resource file_ref,
85 int32_t mode,
86 PP_FileHandle* file) OVERRIDE;
87 virtual int32_t QueryFileRef(PP_Instance instance,
88 PP_Resource file_ref,
89 PP_FileInfo* info) OVERRIDE;
90 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE; 62 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE;
91 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, 63 virtual PP_Bool FlashSetFullscreen(PP_Instance instance,
92 PP_Bool fullscreen) OVERRIDE; 64 PP_Bool fullscreen) OVERRIDE;
93 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, 65 virtual PP_Bool FlashGetScreenSize(PP_Instance instance,
94 PP_Size* size) OVERRIDE; 66 PP_Size* size) OVERRIDE;
95 67
96 private: 68 private:
97 PluginInstance* instance_; 69 PluginInstance* instance_;
98 70
99 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); 71 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl);
100 }; 72 };
101 73
102 } // namespace ppapi 74 } // namespace ppapi
103 } // namespace webkit 75 } // namespace webkit
104 76
105 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ 77 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698