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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/IntSize.h

Issue 2125003002: Move CrossThreadCopier from platform/ to wtf/ Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_RemoveTupleInBind
Patch Set: Rebase Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. All rights reserve d. 2 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. All rights reserve d.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 12 matching lines...) Expand all
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef IntSize_h 27 #ifndef IntSize_h
28 #define IntSize_h 28 #define IntSize_h
29 29
30 #include "platform/PlatformExport.h" 30 #include "platform/PlatformExport.h"
31 #include "public/platform/WebCommon.h" 31 #include "public/platform/WebCommon.h"
32 #include "wtf/Allocator.h" 32 #include "wtf/Allocator.h"
33 #include "wtf/CrossThreadCopier.h"
33 #include "wtf/Forward.h" 34 #include "wtf/Forward.h"
34 35
35 #if OS(MACOSX) 36 #if OS(MACOSX)
36 typedef struct CGSize CGSize; 37 typedef struct CGSize CGSize;
37 38
38 #ifdef __OBJC__ 39 #ifdef __OBJC__
39 #import <Foundation/Foundation.h> 40 #import <Foundation/Foundation.h>
40 #endif 41 #endif
41 #endif 42 #endif
42 43
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 return a.width() == b.width() && a.height() == b.height(); 176 return a.width() == b.width() && a.height() == b.height();
176 } 177 }
177 178
178 inline bool operator!=(const IntSize& a, const IntSize& b) 179 inline bool operator!=(const IntSize& a, const IntSize& b)
179 { 180 {
180 return a.width() != b.width() || a.height() != b.height(); 181 return a.width() != b.width() || a.height() != b.height();
181 } 182 }
182 183
183 } // namespace blink 184 } // namespace blink
184 185
186 namespace WTF {
187
188 template <>
189 struct CrossThreadCopier<blink::IntSize> : public CrossThreadCopierPassThrough<b link::IntSize> {
190 STATIC_ONLY(CrossThreadCopier);
191 };
192
193 } // namespace WTF
194
185 #endif // IntSize_h 195 #endif // IntSize_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698