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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/IntRect.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, 2006, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE. 23 * THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef IntRect_h 26 #ifndef IntRect_h
27 #define IntRect_h 27 #define IntRect_h
28 28
29 #include "platform/geometry/IntPoint.h" 29 #include "platform/geometry/IntPoint.h"
30 #include "platform/geometry/IntRectOutsets.h" 30 #include "platform/geometry/IntRectOutsets.h"
31 #include "wtf/Allocator.h" 31 #include "wtf/Allocator.h"
32 #include "wtf/CrossThreadCopier.h"
32 #include "wtf/Forward.h" 33 #include "wtf/Forward.h"
33 #include "wtf/Vector.h" 34 #include "wtf/Vector.h"
34 #include "wtf/VectorTraits.h" 35 #include "wtf/VectorTraits.h"
35 36
36 #if OS(MACOSX) 37 #if OS(MACOSX)
37 typedef struct CGRect CGRect; 38 typedef struct CGRect CGRect;
38 39
39 #ifdef __OBJC__ 40 #ifdef __OBJC__
40 #import <Foundation/Foundation.h> 41 #import <Foundation/Foundation.h>
41 #endif 42 #endif
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&); 232 PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&);
232 #endif 233 #endif
233 #endif 234 #endif
234 235
235 // Redeclared here to avoid ODR issues. 236 // Redeclared here to avoid ODR issues.
236 // See platform/testing/GeometryPrinters.h. 237 // See platform/testing/GeometryPrinters.h.
237 void PrintTo(const IntRect&, std::ostream*); 238 void PrintTo(const IntRect&, std::ostream*);
238 239
239 } // namespace blink 240 } // namespace blink
240 241
242 namespace WTF {
243
244 template <>
245 struct CrossThreadCopier<blink::IntRect> : public CrossThreadCopierPassThrough<b link::IntRect> {
246 STATIC_ONLY(CrossThreadCopier);
247 };
248
249 } // namespace WTF
250
241 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::IntRect); 251 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::IntRect);
242 252
243 #endif // IntRect_h 253 #endif // IntRect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698