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

Side by Side Diff: ppapi/thunk/resource_creation_api.h

Issue 7149026: Implement flash menu and net connector resources using the API/thunk model. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | « ppapi/thunk/ppb_image_data_trusted_thunk.cc ('k') | ppapi/thunk/thunk.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 PPAPI_THUNK_RESOURCE_CREATION_API_H_ 5 #ifndef PPAPI_THUNK_RESOURCE_CREATION_API_H_
6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_
7 7
8 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 8 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
9 #include "ppapi/c/dev/ppb_file_system_dev.h" 9 #include "ppapi/c/dev/ppb_file_system_dev.h"
10 #include "ppapi/c/pp_bool.h" 10 #include "ppapi/c/pp_bool.h"
11 #include "ppapi/c/pp_instance.h" 11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/ppb_audio.h" 13 #include "ppapi/c/ppb_audio.h"
14 #include "ppapi/c/ppb_audio_config.h" 14 #include "ppapi/c/ppb_audio_config.h"
15 #include "ppapi/c/ppb_image_data.h" 15 #include "ppapi/c/ppb_image_data.h"
16 #include "ppapi/proxy/interface_id.h" 16 #include "ppapi/proxy/interface_id.h"
17 17
18 struct PP_Flash_Menu;
18 struct PP_FontDescription_Dev; 19 struct PP_FontDescription_Dev;
19 struct PP_Size; 20 struct PP_Size;
20 21
21 namespace ppapi { 22 namespace ppapi {
22 namespace thunk { 23 namespace thunk {
23 24
24 // A functional API for creating resource types. Separating out the creation 25 // A functional API for creating resource types. Separating out the creation
25 // functions here allows us to implement most resources as a pure "resource 26 // functions here allows us to implement most resources as a pure "resource
26 // API", meaning all calls are routed on a per-resource-object basis. The 27 // API", meaning all calls are routed on a per-resource-object basis. The
27 // creation functions are not per-object (since there's no object during 28 // creation functions are not per-object (since there's no object during
(...skipping 15 matching lines...) Expand all
43 virtual PP_Resource CreateBuffer(PP_Instance instance, uint32_t size) = 0; 44 virtual PP_Resource CreateBuffer(PP_Instance instance, uint32_t size) = 0;
44 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) = 0; 45 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) = 0;
45 virtual PP_Resource CreateFileChooser( 46 virtual PP_Resource CreateFileChooser(
46 PP_Instance instance, 47 PP_Instance instance,
47 const PP_FileChooserOptions_Dev* options) = 0; 48 const PP_FileChooserOptions_Dev* options) = 0;
48 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0; 49 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0;
49 virtual PP_Resource CreateFileRef(PP_Resource file_system, 50 virtual PP_Resource CreateFileRef(PP_Resource file_system,
50 const char* path) = 0; 51 const char* path) = 0;
51 virtual PP_Resource CreateFileSystem(PP_Instance instance, 52 virtual PP_Resource CreateFileSystem(PP_Instance instance,
52 PP_FileSystemType_Dev type) = 0; 53 PP_FileSystemType_Dev type) = 0;
54 virtual PP_Resource CreateFlashMenu(PP_Instance instance,
55 const PP_Flash_Menu* menu_data) = 0;
56 virtual PP_Resource CreateFlashNetConnector(PP_Instance instance) = 0;
53 // Note: can't be called CreateFont due to Windows #defines. 57 // Note: can't be called CreateFont due to Windows #defines.
54 virtual PP_Resource CreateFontObject( 58 virtual PP_Resource CreateFontObject(
55 PP_Instance instance, 59 PP_Instance instance,
56 const PP_FontDescription_Dev* description) = 0; 60 const PP_FontDescription_Dev* description) = 0;
57 virtual PP_Resource CreateGraphics2D(PP_Instance instance, 61 virtual PP_Resource CreateGraphics2D(PP_Instance instance,
58 const PP_Size& size, 62 const PP_Size& size,
59 PP_Bool is_always_opaque) = 0; 63 PP_Bool is_always_opaque) = 0;
60 virtual PP_Resource CreateImageData(PP_Instance instance, 64 virtual PP_Resource CreateImageData(PP_Instance instance,
61 PP_ImageDataFormat format, 65 PP_ImageDataFormat format,
62 const PP_Size& size, 66 const PP_Size& size,
63 PP_Bool init_to_zero) = 0; 67 PP_Bool init_to_zero) = 0;
64 }; 68 };
65 69
66 } // namespace thunk 70 } // namespace thunk
67 } // namespace ppapi 71 } // namespace ppapi
68 72
69 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ 73 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_image_data_trusted_thunk.cc ('k') | ppapi/thunk/thunk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698