OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/private/camera_capabilities_private.h" | 5 #include "ppapi/cpp/private/camera_capabilities_private.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "ppapi/c/pp_bool.h" | 9 #include "ppapi/c/pp_bool.h" |
8 #include "ppapi/c/pp_size.h" | 10 #include "ppapi/c/pp_size.h" |
9 #include "ppapi/cpp/instance_handle.h" | 11 #include "ppapi/cpp/instance_handle.h" |
10 #include "ppapi/cpp/module_impl.h" | 12 #include "ppapi/cpp/module_impl.h" |
11 | 13 |
12 namespace pp { | 14 namespace pp { |
13 | 15 |
14 namespace { | 16 namespace { |
15 | 17 |
16 template <> | 18 template <> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const Resource& resource) { | 66 const Resource& resource) { |
65 if (!has_interface<PPB_CameraCapabilities_Private_0_1>()) | 67 if (!has_interface<PPB_CameraCapabilities_Private_0_1>()) |
66 return false; | 68 return false; |
67 | 69 |
68 return PP_ToBool( | 70 return PP_ToBool( |
69 get_interface<PPB_CameraCapabilities_Private_0_1>()->IsCameraCapabilities( | 71 get_interface<PPB_CameraCapabilities_Private_0_1>()->IsCameraCapabilities( |
70 resource.pp_resource())); | 72 resource.pp_resource())); |
71 } | 73 } |
72 | 74 |
73 } // namespace pp | 75 } // namespace pp |
OLD | NEW |