OLD | NEW |
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( | 27 virtual PP_Bool DrawGlyphs( |
28 PP_Instance instance, | 28 PP_Instance instance, |
29 PP_Resource pp_image_data, | 29 PP_Resource pp_image_data, |
(...skipping 13 matching lines...) Expand all Loading... |
43 virtual int32_t Navigate(PP_Instance instance, | 43 virtual int32_t Navigate(PP_Instance instance, |
44 const ::ppapi::URLRequestInfoData& data, | 44 const ::ppapi::URLRequestInfoData& data, |
45 const char* target, | 45 const char* target, |
46 PP_Bool from_user_action) OVERRIDE; | 46 PP_Bool from_user_action) OVERRIDE; |
47 virtual double GetLocalTimeZoneOffset(PP_Instance instance, | 47 virtual double GetLocalTimeZoneOffset(PP_Instance instance, |
48 PP_Time t) OVERRIDE; | 48 PP_Time t) OVERRIDE; |
49 virtual PP_Bool IsRectTopmost(PP_Instance instance, | 49 virtual PP_Bool IsRectTopmost(PP_Instance instance, |
50 const PP_Rect* rect) OVERRIDE; | 50 const PP_Rect* rect) OVERRIDE; |
51 virtual PP_Var GetSetting(PP_Instance instance, | 51 virtual PP_Var GetSetting(PP_Instance instance, |
52 PP_FlashSetting setting) OVERRIDE; | 52 PP_FlashSetting setting) OVERRIDE; |
53 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) OVERRIDE; | |
54 virtual void ClearThreadAdapterForInstance(PP_Instance instance) OVERRIDE; | |
55 virtual int32_t OpenFile(PP_Instance instance, | |
56 const char* path, | |
57 int32_t mode, | |
58 PP_FileHandle* file) OVERRIDE; | |
59 virtual int32_t RenameFile(PP_Instance instance, | |
60 const char* path_from, | |
61 const char* path_to) OVERRIDE; | |
62 virtual int32_t DeleteFileOrDir(PP_Instance instance, | |
63 const char* path, | |
64 PP_Bool recursive) OVERRIDE; | |
65 virtual int32_t CreateDir(PP_Instance instance, const char* path) OVERRIDE; | |
66 virtual int32_t QueryFile(PP_Instance instance, | |
67 const char* path, | |
68 PP_FileInfo* info) OVERRIDE; | |
69 virtual int32_t GetDirContents(PP_Instance instance, | |
70 const char* path, | |
71 PP_DirContents_Dev** contents) OVERRIDE; | |
72 virtual int32_t CreateTemporaryFile(PP_Instance instance, | |
73 PP_FileHandle* file) OVERRIDE; | |
74 virtual int32_t OpenFileRef(PP_Instance instance, | |
75 PP_Resource file_ref, | |
76 int32_t mode, | |
77 PP_FileHandle* file) OVERRIDE; | |
78 virtual int32_t QueryFileRef(PP_Instance instance, | |
79 PP_Resource file_ref, | |
80 PP_FileInfo* info) OVERRIDE; | |
81 | 53 |
82 private: | 54 private: |
83 PluginInstance* instance_; | 55 PluginInstance* instance_; |
84 | 56 |
85 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); | 57 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); |
86 }; | 58 }; |
87 | 59 |
88 } // namespace ppapi | 60 } // namespace ppapi |
89 } // namespace webkit | 61 } // namespace webkit |
90 | 62 |
91 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ | 63 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ |
OLD | NEW |