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

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

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 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
« no previous file with comments | « ppapi/shared_impl/ppb_crypto_shared.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 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ppapi/shared_impl/resource.h" 12 #include "ppapi/shared_impl/resource.h"
13 #include "ppapi/thunk/ppb_device_ref_api.h" 13 #include "ppapi/thunk/ppb_device_ref_api.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
16 16
17 // IF YOU ADD STUFF TO THIS CLASS 17 // IF YOU ADD STUFF TO THIS CLASS
18 // ============================== 18 // ==============================
19 // Be sure to add it to the STRUCT_TRAITS at the top of ppapi_messages.h. 19 // Be sure to add it to the STRUCT_TRAITS at the top of ppapi_messages.h.
20 struct PPAPI_SHARED_EXPORT DeviceRefData { 20 struct PPAPI_SHARED_EXPORT DeviceRefData {
21 DeviceRefData(); 21 DeviceRefData();
22 22
23 bool operator==(const DeviceRefData& other) const { 23 bool operator==(const DeviceRefData& other) const {
24 return type == other.type && 24 return type == other.type && name == other.name && id == other.id;
25 name == other.name &&
26 id == other.id;
27 } 25 }
28 26
29 PP_DeviceType_Dev type; 27 PP_DeviceType_Dev type;
30 std::string name; 28 std::string name;
31 std::string id; 29 std::string id;
32 }; 30 };
33 31
34 class PPAPI_SHARED_EXPORT PPB_DeviceRef_Shared 32 class PPAPI_SHARED_EXPORT PPB_DeviceRef_Shared
35 : public Resource, 33 : public Resource,
36 public thunk::PPB_DeviceRef_API { 34 public thunk::PPB_DeviceRef_API {
(...skipping 12 matching lines...) Expand all
49 47
50 private: 48 private:
51 DeviceRefData data_; 49 DeviceRefData data_;
52 50
53 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_DeviceRef_Shared); 51 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_DeviceRef_Shared);
54 }; 52 };
55 53
56 } // namespace ppapi 54 } // namespace ppapi
57 55
58 #endif // PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_ 56 #endif // PPAPI_SHARED_IMPL_PPB_DEVICE_REF_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_crypto_shared.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