| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |