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

Side by Side Diff: Source/wtf/TypeTraits.h

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/wtf/RefVector.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 static const bool value = __is_polymorphic(T); 284 static const bool value = __is_polymorphic(T);
285 }; 285 };
286 286
287 #define EnsurePtrConvertibleArgDecl(From, To) \ 287 #define EnsurePtrConvertibleArgDecl(From, To) \
288 typename WTF::EnableIf<WTF::IsPointerConvertible<From, To>::Value, bool>::Ty pe = true 288 typename WTF::EnableIf<WTF::IsPointerConvertible<From, To>::Value, bool>::Ty pe = true
289 #define EnsurePtrConvertibleArgDefn(From, To) \ 289 #define EnsurePtrConvertibleArgDefn(From, To) \
290 typename WTF::EnableIf<WTF::IsPointerConvertible<From, To>::Value, bool>::Ty pe 290 typename WTF::EnableIf<WTF::IsPointerConvertible<From, To>::Value, bool>::Ty pe
291 291
292 } // namespace WTF 292 } // namespace WTF
293 293
294 namespace WebCore { 294 namespace blink {
295 295
296 class JSONValue; 296 class JSONValue;
297 297
298 } // namespace WebCore 298 } // namespace blink
299 299
300 namespace WTF { 300 namespace WTF {
301 301
302 // FIXME: Disable pointer conversion checking against JSONValue. 302 // FIXME: Disable pointer conversion checking against JSONValue.
303 // The current CodeGeneratorInspector.py generates code which upcasts to JSO NValue from undefined types. 303 // The current CodeGeneratorInspector.py generates code which upcasts to JSO NValue from undefined types.
304 template<typename From> class IsPointerConvertible<From, WebCore::JSONValue> { 304 template<typename From> class IsPointerConvertible<From, blink::JSONValue> {
305 public: 305 public:
306 enum { 306 enum {
307 Value = true 307 Value = true
308 }; 308 };
309 }; 309 };
310 310
311 template<typename T> 311 template<typename T>
312 class NeedsTracing { 312 class NeedsTracing {
313 typedef char YesType; 313 typedef char YesType;
314 typedef struct NoType { 314 typedef struct NoType {
(...skipping 29 matching lines...) Expand all
344 template<typename T>class OwnPtr; 344 template<typename T>class OwnPtr;
345 345
346 template<typename T> 346 template<typename T>
347 struct NeedsTracing<OwnPtr<T> > { 347 struct NeedsTracing<OwnPtr<T> > {
348 static const bool value = NeedsTracing<T>::value; 348 static const bool value = NeedsTracing<T>::value;
349 }; 349 };
350 350
351 } // namespace WTF 351 } // namespace WTF
352 352
353 #endif // TypeTraits_h 353 #endif // TypeTraits_h
OLDNEW
« no previous file with comments | « Source/wtf/RefVector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698