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

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

Issue 11437038: Revert 171408 (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 | « webkit/plugins/ppapi/ppapi_plugin_instance.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/shared_impl/ppb_flash_shared.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::PPB_Flash_Shared {
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 12 matching lines...) Expand all
42 virtual int32_t Navigate(PP_Instance instance, 42 virtual int32_t Navigate(PP_Instance instance,
43 const ::ppapi::URLRequestInfoData& data, 43 const ::ppapi::URLRequestInfoData& data,
44 const char* target, 44 const char* target,
45 PP_Bool from_user_action) OVERRIDE; 45 PP_Bool from_user_action) OVERRIDE;
46 virtual double GetLocalTimeZoneOffset(PP_Instance instance, 46 virtual double GetLocalTimeZoneOffset(PP_Instance instance,
47 PP_Time t) OVERRIDE; 47 PP_Time t) OVERRIDE;
48 virtual PP_Bool IsRectTopmost(PP_Instance instance, 48 virtual PP_Bool IsRectTopmost(PP_Instance instance,
49 const PP_Rect* rect) OVERRIDE; 49 const PP_Rect* rect) OVERRIDE;
50 virtual PP_Var GetSetting(PP_Instance instance, 50 virtual PP_Var GetSetting(PP_Instance instance,
51 PP_FlashSetting setting) OVERRIDE; 51 PP_FlashSetting setting) OVERRIDE;
52 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) OVERRIDE;
53 virtual void ClearThreadAdapterForInstance(PP_Instance instance) OVERRIDE;
54 virtual int32_t OpenFile(PP_Instance instance,
55 const char* path,
56 int32_t mode,
57 PP_FileHandle* file) OVERRIDE;
58 virtual int32_t RenameFile(PP_Instance instance,
59 const char* path_from,
60 const char* path_to) OVERRIDE;
61 virtual int32_t DeleteFileOrDir(PP_Instance instance,
62 const char* path,
63 PP_Bool recursive) OVERRIDE;
64 virtual int32_t CreateDir(PP_Instance instance, const char* path) OVERRIDE;
65 virtual int32_t QueryFile(PP_Instance instance,
66 const char* path,
67 PP_FileInfo* info) OVERRIDE;
68 virtual int32_t GetDirContents(PP_Instance instance,
69 const char* path,
70 PP_DirContents_Dev** contents) OVERRIDE;
71 virtual int32_t CreateTemporaryFile(PP_Instance instance,
72 PP_FileHandle* file) OVERRIDE;
73 virtual int32_t OpenFileRef(PP_Instance instance,
74 PP_Resource file_ref,
75 int32_t mode,
76 PP_FileHandle* file) OVERRIDE;
77 virtual int32_t QueryFileRef(PP_Instance instance,
78 PP_Resource file_ref,
79 PP_FileInfo* info) OVERRIDE;
52 80
53 private: 81 private:
54 PluginInstance* instance_; 82 PluginInstance* instance_;
55 83
56 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); 84 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl);
57 }; 85 };
58 86
59 } // namespace ppapi 87 } // namespace ppapi
60 } // namespace webkit 88 } // namespace webkit
61 89
62 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ 90 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/ppb_flash_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698