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

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

Issue 7553003: Video Capture Pepper API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make Clang happy Created 9 years, 4 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_video_capture_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_graphics_3d_dev.h" 9 #include "ppapi/c/dev/ppb_graphics_3d_dev.h"
10 #include "ppapi/c/dev/ppb_video_layer_dev.h" 10 #include "ppapi/c/dev/ppb_video_layer_dev.h"
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_resource.h" 13 #include "ppapi/c/pp_resource.h"
14 #include "ppapi/c/ppb_audio.h" 14 #include "ppapi/c/ppb_audio.h"
15 #include "ppapi/c/ppb_audio_config.h" 15 #include "ppapi/c/ppb_audio_config.h"
16 #include "ppapi/c/ppb_file_system.h" 16 #include "ppapi/c/ppb_file_system.h"
17 #include "ppapi/c/ppb_image_data.h" 17 #include "ppapi/c/ppb_image_data.h"
18 #include "ppapi/c/ppb_input_event.h" 18 #include "ppapi/c/ppb_input_event.h"
19 #include "ppapi/proxy/interface_id.h" 19 #include "ppapi/proxy/interface_id.h"
20 20
21 struct PP_Flash_Menu; 21 struct PP_Flash_Menu;
22 struct PP_FontDescription_Dev; 22 struct PP_FontDescription_Dev;
23 struct PP_VideoCaptureDeviceInfo_Dev;
23 struct PP_Size; 24 struct PP_Size;
24 25
25 namespace ppapi { 26 namespace ppapi {
26 namespace thunk { 27 namespace thunk {
27 28
28 // A functional API for creating resource types. Separating out the creation 29 // A functional API for creating resource types. Separating out the creation
29 // functions here allows us to implement most resources as a pure "resource 30 // functions here allows us to implement most resources as a pure "resource
30 // API", meaning all calls are routed on a per-resource-object basis. The 31 // API", meaning all calls are routed on a per-resource-object basis. The
31 // creation functions are not per-object (since there's no object during 32 // creation functions are not per-object (since there's no object during
32 // creation) so need functional routing based on the instance ID. 33 // creation) so need functional routing based on the instance ID.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 virtual PP_Resource CreateScrollbar(PP_Instance instance, 103 virtual PP_Resource CreateScrollbar(PP_Instance instance,
103 PP_Bool vertical) = 0; 104 PP_Bool vertical) = 0;
104 virtual PP_Resource CreateSurface3D(PP_Instance instance, 105 virtual PP_Resource CreateSurface3D(PP_Instance instance,
105 PP_Config3D_Dev config, 106 PP_Config3D_Dev config,
106 const int32_t* attrib_list) = 0; 107 const int32_t* attrib_list) = 0;
107 virtual PP_Resource CreateTransport(PP_Instance instance, 108 virtual PP_Resource CreateTransport(PP_Instance instance,
108 const char* name, 109 const char* name,
109 const char* proto) = 0; 110 const char* proto) = 0;
110 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0; 111 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0;
111 virtual PP_Resource CreateURLRequestInfo(PP_Instance instance) = 0; 112 virtual PP_Resource CreateURLRequestInfo(PP_Instance instance) = 0;
113 virtual PP_Resource CreateVideoCapture(PP_Instance instance) = 0;
112 virtual PP_Resource CreateVideoDecoder( 114 virtual PP_Resource CreateVideoDecoder(
113 PP_Instance instance, 115 PP_Instance instance,
114 PP_Resource context3d_id, 116 PP_Resource context3d_id,
115 const PP_VideoConfigElement* config) = 0; 117 const PP_VideoConfigElement* config) = 0;
116 virtual PP_Resource CreateVideoLayer(PP_Instance instance, 118 virtual PP_Resource CreateVideoLayer(PP_Instance instance,
117 PP_VideoLayerMode_Dev mode) = 0; 119 PP_VideoLayerMode_Dev mode) = 0;
118 virtual PP_Resource CreateWheelInputEvent( 120 virtual PP_Resource CreateWheelInputEvent(
119 PP_Instance instance, 121 PP_Instance instance,
120 PP_TimeTicks time_stamp, 122 PP_TimeTicks time_stamp,
121 uint32_t modifiers, 123 uint32_t modifiers,
122 const PP_FloatPoint* wheel_delta, 124 const PP_FloatPoint* wheel_delta,
123 const PP_FloatPoint* wheel_ticks, 125 const PP_FloatPoint* wheel_ticks,
124 PP_Bool scroll_by_page) = 0; 126 PP_Bool scroll_by_page) = 0;
125 127
126 static const ::pp::proxy::InterfaceID interface_id = 128 static const ::pp::proxy::InterfaceID interface_id =
127 ::pp::proxy::INTERFACE_ID_RESOURCE_CREATION; 129 ::pp::proxy::INTERFACE_ID_RESOURCE_CREATION;
128 }; 130 };
129 131
130 } // namespace thunk 132 } // namespace thunk
131 } // namespace ppapi 133 } // namespace ppapi
132 134
133 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ 135 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_video_capture_thunk.cc ('k') | ppapi/thunk/thunk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698