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

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

Issue 10169040: Move the rest of the Flash functions to the thunk system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months 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/ppb_flash_file_impl.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"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 PP_Flash_Clipboard_Type clipboard_type, 60 PP_Flash_Clipboard_Type clipboard_type,
61 PP_Flash_Clipboard_Format format) OVERRIDE; 61 PP_Flash_Clipboard_Format format) OVERRIDE;
62 virtual PP_Var ReadClipboardData(PP_Instance instance, 62 virtual PP_Var ReadClipboardData(PP_Instance instance,
63 PP_Flash_Clipboard_Type clipboard_type, 63 PP_Flash_Clipboard_Type clipboard_type,
64 PP_Flash_Clipboard_Format format) OVERRIDE; 64 PP_Flash_Clipboard_Format format) OVERRIDE;
65 virtual int32_t WriteClipboardData(PP_Instance instance, 65 virtual int32_t WriteClipboardData(PP_Instance instance,
66 PP_Flash_Clipboard_Type clipboard_type, 66 PP_Flash_Clipboard_Type clipboard_type,
67 uint32_t data_item_count, 67 uint32_t data_item_count,
68 const PP_Flash_Clipboard_Format formats[], 68 const PP_Flash_Clipboard_Format formats[],
69 const PP_Var data_items[]) OVERRIDE; 69 const PP_Var data_items[]) OVERRIDE;
70 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) OVERRIDE;
71 virtual void ClearThreadAdapterForInstance(PP_Instance instance) OVERRIDE;
72 virtual int32_t OpenFile(PP_Instance instance,
73 const char* path,
74 int32_t mode,
75 PP_FileHandle* file) OVERRIDE;
76 virtual int32_t RenameFile(PP_Instance instance,
77 const char* path_from,
78 const char* path_to) OVERRIDE;
79 virtual int32_t DeleteFileOrDir(PP_Instance instance,
80 const char* path,
81 PP_Bool recursive) OVERRIDE;
82 virtual int32_t CreateDir(PP_Instance instance, const char* path) OVERRIDE;
83 virtual int32_t QueryFile(PP_Instance instance,
84 const char* path,
85 PP_FileInfo* info) OVERRIDE;
86 virtual int32_t GetDirContents(PP_Instance instance,
87 const char* path,
88 PP_DirContents_Dev** contents) OVERRIDE;
89 virtual int32_t OpenFileRef(PP_Instance instance,
90 PP_Resource file_ref,
91 int32_t mode,
92 PP_FileHandle* file) OVERRIDE;
93 virtual int32_t QueryFileRef(PP_Instance instance,
94 PP_Resource file_ref,
95 PP_FileInfo* info) OVERRIDE;
70 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE; 96 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE;
71 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, 97 virtual PP_Bool FlashSetFullscreen(PP_Instance instance,
72 PP_Bool fullscreen) OVERRIDE; 98 PP_Bool fullscreen) OVERRIDE;
73 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, 99 virtual PP_Bool FlashGetScreenSize(PP_Instance instance,
74 PP_Size* size) OVERRIDE; 100 PP_Size* size) OVERRIDE;
75 101
76 private: 102 private:
77 // Call to ensure that the clipboard_client is properly initialized. Returns 103 // Call to ensure that the clipboard_client is properly initialized. Returns
78 // true on success. On failure, you should not use the client. 104 // true on success. On failure, you should not use the client.
79 bool InitClipboard(); 105 bool InitClipboard();
80 106
81 int32_t WriteClipboardDataItem(const PP_Flash_Clipboard_Format format, 107 int32_t WriteClipboardDataItem(const PP_Flash_Clipboard_Format format,
82 const PP_Var& data, 108 const PP_Var& data,
83 ScopedClipboardWriterGlue* scw); 109 ScopedClipboardWriterGlue* scw);
84 110
85 PluginInstance* instance_; 111 PluginInstance* instance_;
86 112
87 // This object is lazily created by InitClipboard. 113 // This object is lazily created by InitClipboard.
88 scoped_ptr<webkit_glue::ClipboardClient> clipboard_client_; 114 scoped_ptr<webkit_glue::ClipboardClient> clipboard_client_;
89 115
90 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl); 116 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Impl);
91 }; 117 };
92 118
93 } // namespace ppapi 119 } // namespace ppapi
94 } // namespace webkit 120 } // namespace webkit
95 121
96 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_ 122 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_file_impl.cc ('k') | webkit/plugins/ppapi/ppb_flash_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698