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

Side by Side Diff: ppapi/cpp/dev/video_capture_dev.cc

Issue 123933006: Pepper: Remove ResourceArray_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/cpp/dev/resource_array_dev.cc ('k') | ppapi/cpp/file_io.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/cpp/dev/video_capture_dev.h" 5 #include "ppapi/cpp/dev/video_capture_dev.h"
6 6
7 #include "ppapi/c/dev/ppb_video_capture_dev.h" 7 #include "ppapi/c/dev/ppb_video_capture_dev.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/cpp/dev/resource_array_dev.h"
10 #include "ppapi/cpp/instance_handle.h" 9 #include "ppapi/cpp/instance_handle.h"
11 #include "ppapi/cpp/module_impl.h" 10 #include "ppapi/cpp/module_impl.h"
12 11
13 namespace pp { 12 namespace pp {
14 13
15 namespace { 14 namespace {
16 15
17 template <> const char* interface_name<PPB_VideoCapture_Dev_0_3>() { 16 template <> const char* interface_name<PPB_VideoCapture_Dev_0_3>() {
18 return PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3; 17 return PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3;
19 } 18 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 return PP_ERROR_NOINTERFACE; 100 return PP_ERROR_NOINTERFACE;
102 } 101 }
103 102
104 void VideoCapture_Dev::Close() { 103 void VideoCapture_Dev::Close() {
105 if (has_interface<PPB_VideoCapture_Dev_0_3>()) { 104 if (has_interface<PPB_VideoCapture_Dev_0_3>()) {
106 get_interface<PPB_VideoCapture_Dev_0_3>()->Close(pp_resource()); 105 get_interface<PPB_VideoCapture_Dev_0_3>()->Close(pp_resource());
107 } 106 }
108 } 107 }
109 108
110 } // namespace pp 109 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/resource_array_dev.cc ('k') | ppapi/cpp/file_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698