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

Side by Side Diff: ppapi/thunk/ppb_video_capture_thunk.cc

Issue 10168026: Delete FunctionGroupBase from Pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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_url_request_info_thunk.cc ('k') | ppapi/thunk/ppb_video_decoder_thunk.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 #include "ppapi/c/pp_errors.h" 5 #include "ppapi/c/pp_errors.h"
6 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 6 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
7 #include "ppapi/thunk/enter.h" 7 #include "ppapi/thunk/enter.h"
8 #include "ppapi/thunk/ppb_device_ref_api.h" 8 #include "ppapi/thunk/ppb_device_ref_api.h"
9 #include "ppapi/thunk/ppb_video_capture_api.h" 9 #include "ppapi/thunk/ppb_video_capture_api.h"
10 #include "ppapi/thunk/resource_creation_api.h" 10 #include "ppapi/thunk/resource_creation_api.h"
11 #include "ppapi/thunk/thunk.h" 11 #include "ppapi/thunk/thunk.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 namespace thunk { 14 namespace thunk {
15 15
16 namespace { 16 namespace {
17 17
18 typedef EnterResource<PPB_VideoCapture_API> EnterVideoCapture; 18 typedef EnterResource<PPB_VideoCapture_API> EnterVideoCapture;
19 19
20 PP_Resource Create(PP_Instance instance) { 20 PP_Resource Create(PP_Instance instance) {
21 EnterFunction<ResourceCreationAPI> enter(instance, true); 21 EnterResourceCreation enter(instance);
22 if (enter.failed()) 22 if (enter.failed())
23 return 0; 23 return 0;
24 return enter.functions()->CreateVideoCapture(instance); 24 return enter.functions()->CreateVideoCapture(instance);
25 } 25 }
26 26
27 PP_Bool IsVideoCapture(PP_Resource resource) { 27 PP_Bool IsVideoCapture(PP_Resource resource) {
28 EnterVideoCapture enter(resource, false); 28 EnterVideoCapture enter(resource, false);
29 return PP_FromBool(enter.succeeded()); 29 return PP_FromBool(enter.succeeded());
30 } 30 }
31 31
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const PPB_VideoCapture_Dev_0_1* GetPPB_VideoCapture_Dev_0_1_Thunk() { 124 const PPB_VideoCapture_Dev_0_1* GetPPB_VideoCapture_Dev_0_1_Thunk() {
125 return &g_ppb_video_capture_0_1_thunk; 125 return &g_ppb_video_capture_0_1_thunk;
126 } 126 }
127 127
128 const PPB_VideoCapture_Dev_0_2* GetPPB_VideoCapture_Dev_0_2_Thunk() { 128 const PPB_VideoCapture_Dev_0_2* GetPPB_VideoCapture_Dev_0_2_Thunk() {
129 return &g_ppb_video_capture_0_2_thunk; 129 return &g_ppb_video_capture_0_2_thunk;
130 } 130 }
131 131
132 } // namespace thunk 132 } // namespace thunk
133 } // namespace ppapi 133 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_url_request_info_thunk.cc ('k') | ppapi/thunk/ppb_video_decoder_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698