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

Side by Side Diff: ppapi/shared_impl/ppb_device_ref_shared.h

Issue 9234064: Implement device enumeration for PPB_VideoCapture_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 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/proxy/ppb_video_capture_proxy.cc ('k') | ppapi/shared_impl/ppb_device_ref_shared.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 #ifndef PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_ 5 #ifndef PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_
6 #define PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_ 6 #define PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector>
9 10
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
12 #include "ppapi/shared_impl/resource.h" 13 #include "ppapi/shared_impl/resource.h"
13 #include "ppapi/thunk/ppb_device_ref_api.h" 14 #include "ppapi/thunk/ppb_device_ref_api.h"
14 15
15 namespace ppapi { 16 namespace ppapi {
16 17
17 // IF YOU ADD STUFF TO THIS CLASS 18 // IF YOU ADD STUFF TO THIS CLASS
18 // ============================== 19 // ==============================
(...skipping 15 matching lines...) Expand all
34 const DeviceRefData& data); 35 const DeviceRefData& data);
35 36
36 // Resource overrides. 37 // Resource overrides.
37 virtual PPB_DeviceRef_API* AsPPB_DeviceRef_API() OVERRIDE; 38 virtual PPB_DeviceRef_API* AsPPB_DeviceRef_API() OVERRIDE;
38 39
39 // PPB_DeviceRef_API implementation. 40 // PPB_DeviceRef_API implementation.
40 virtual const DeviceRefData& GetDeviceRefData() const OVERRIDE; 41 virtual const DeviceRefData& GetDeviceRefData() const OVERRIDE;
41 virtual PP_DeviceType_Dev GetType() OVERRIDE; 42 virtual PP_DeviceType_Dev GetType() OVERRIDE;
42 virtual PP_Var GetName() OVERRIDE; 43 virtual PP_Var GetName() OVERRIDE;
43 44
45 static PP_Resource CreateResourceArray(
46 ResourceObjectType type,
47 PP_Instance instance,
48 const std::vector<DeviceRefData>& devices);
49
44 private: 50 private:
45 DeviceRefData data_; 51 DeviceRefData data_;
46 52
47 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_DeviceRef_Shared); 53 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_DeviceRef_Shared);
48 }; 54 };
49 55
50 } // namespace ppapi 56 } // namespace ppapi
51 57
52 #endif // PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_ 58 #endif // PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_video_capture_proxy.cc ('k') | ppapi/shared_impl/ppb_device_ref_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698