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 #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 #include <vector> |
yzshen1
2014/01/06 17:23:19
nit: vector is not needed anymore.
| |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "ppapi/shared_impl/resource.h" | 13 #include "ppapi/shared_impl/resource.h" |
14 #include "ppapi/thunk/ppb_device_ref_api.h" | 14 #include "ppapi/thunk/ppb_device_ref_api.h" |
15 | 15 |
16 namespace ppapi { | 16 namespace ppapi { |
17 | 17 |
18 // IF YOU ADD STUFF TO THIS CLASS | 18 // IF YOU ADD STUFF TO THIS CLASS |
19 // ============================== | 19 // ============================== |
(...skipping 21 matching lines...) Expand all Loading... | |
41 const DeviceRefData& data); | 41 const DeviceRefData& data); |
42 | 42 |
43 // Resource overrides. | 43 // Resource overrides. |
44 virtual PPB_DeviceRef_API* AsPPB_DeviceRef_API() OVERRIDE; | 44 virtual PPB_DeviceRef_API* AsPPB_DeviceRef_API() OVERRIDE; |
45 | 45 |
46 // PPB_DeviceRef_API implementation. | 46 // PPB_DeviceRef_API implementation. |
47 virtual const DeviceRefData& GetDeviceRefData() const OVERRIDE; | 47 virtual const DeviceRefData& GetDeviceRefData() const OVERRIDE; |
48 virtual PP_DeviceType_Dev GetType() OVERRIDE; | 48 virtual PP_DeviceType_Dev GetType() OVERRIDE; |
49 virtual PP_Var GetName() OVERRIDE; | 49 virtual PP_Var GetName() OVERRIDE; |
50 | 50 |
51 static PP_Resource CreateResourceArray( | |
52 ResourceObjectType type, | |
53 PP_Instance instance, | |
54 const std::vector<DeviceRefData>& devices); | |
55 | |
56 private: | 51 private: |
57 DeviceRefData data_; | 52 DeviceRefData data_; |
58 | 53 |
59 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_DeviceRef_Shared); | 54 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_DeviceRef_Shared); |
60 }; | 55 }; |
61 | 56 |
62 } // namespace ppapi | 57 } // namespace ppapi |
63 | 58 |
64 #endif // PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_ | 59 #endif // PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_ |
OLD | NEW |