OLD | NEW |
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 Loading... |
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 |
OLD | NEW |