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 <vector> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "ppapi/proxy/ppapi_proxy_export.h" | |
13 #include "ppapi/shared_impl/resource.h" | |
14 #include "ppapi/thunk/ppb_camera_capabilities_api.h" | |
15 | |
16 namespace ppapi { | |
17 namespace proxy { | |
18 | |
19 class ImageCaptureResource; | |
20 | |
21 class PPAPI_PROXY_EXPORT CameraCapabilitiesResource | |
22 : public Resource, | |
23 public thunk::PPB_CameraCapabilities_API { | |
24 public: | |
25 CameraCapabilitiesResource(PP_Instance instance, | |
26 const std::vector<PP_Size>& preview_sizes); | |
27 | |
28 virtual ~CameraCapabilitiesResource(); | |
29 | |
30 // Resource overrides: | |
31 virtual thunk::PPB_CameraCapabilities_API* AsPPB_CameraCapabilities_API() | |
32 override; | |
33 | |
34 // PPB_CameraCapabilities_API overrides | |
dmichael (off chromium)
2015/02/09 22:26:59
s/overrides/implementation:
Justin Chuang
2015/02/10 16:01:02
Done, thanks. But I found most files use 'implemen
| |
35 virtual void GetSupportedPreviewSizes(int32_t* array_size, | |
36 PP_Size** preview_sizes) override; | |
37 | |
38 private: | |
39 int32_t num_preview_sizes_; | |
40 scoped_ptr<PP_Size[]> preview_sizes_; | |
41 | |
42 DISALLOW_COPY_AND_ASSIGN(CameraCapabilitiesResource); | |
43 }; | |
44 | |
45 } // namespace proxy | |
46 } // namespace ppapi | |
47 | |
48 #endif // PPAPI_PROXY_CAMERA_CAPABILITIES_RESOURCE_H_ | |
OLD | NEW |