OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_PROXY_CAMERA_CAPABILITIES_RESOURCE_H_ |
| 6 #define PPAPI_PROXY_CAMERA_CAPABILITIES_RESOURCE_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 11 #include "ppapi/shared_impl/resource.h" |
| 12 #include "ppapi/thunk/ppb_camera_capabilities_api.h" |
| 13 |
| 14 namespace ppapi { |
| 15 namespace proxy { |
| 16 |
| 17 class ImageCaptureResource; |
| 18 |
| 19 class PPAPI_PROXY_EXPORT CameraCapabilitiesResource |
| 20 : public Resource, |
| 21 public thunk::PPB_CameraCapabilities_API { |
| 22 public: |
| 23 CameraCapabilitiesResource(PP_Instance instance, |
| 24 const std::vector<PP_Size>& preview_array); |
| 25 |
| 26 virtual ~CameraCapabilitiesResource(); |
| 27 |
| 28 // Resource overrides: |
| 29 virtual thunk::PPB_CameraCapabilities_API* AsPPB_CameraCapabilities_API() |
| 30 override; |
| 31 |
| 32 // PPB_CameraCapabilities_API overrides |
| 33 virtual void GetSupportedPreviewSizes(int32_t* array_size, |
| 34 PP_Size** preview_sizes) override; |
| 35 private: |
| 36 int32_t num_preview_sizes_; |
| 37 scoped_ptr<PP_Size[]> preview_sizes_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(CameraCapabilitiesResource); |
| 40 }; |
| 41 |
| 42 } // namespace proxy |
| 43 } // namespace ppapi |
| 44 |
| 45 #endif // PPAPI_PROXY_CAMERA_CAPABILITIES_RESOURCE_H_ |
OLD | NEW |