| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> |
| 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 rights reserved. | 6 rights reserved. |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
| 9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
| 10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 const ResourceLoaderOptions&, | 492 const ResourceLoaderOptions&, |
| 493 const String&) const = 0; | 493 const String&) const = 0; |
| 494 Resource::Type type() const { return m_type; } | 494 Resource::Type type() const { return m_type; } |
| 495 | 495 |
| 496 protected: | 496 protected: |
| 497 explicit ResourceFactory(Resource::Type type) : m_type(type) {} | 497 explicit ResourceFactory(Resource::Type type) : m_type(type) {} |
| 498 | 498 |
| 499 Resource::Type m_type; | 499 Resource::Type m_type; |
| 500 }; | 500 }; |
| 501 | 501 |
| 502 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 502 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 503 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 503 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
| 504 resource->getType() == Resource::typeName, \ | 504 resource->GetType() == Resource::k##typeName, \ |
| 505 resource.getType() == Resource::typeName); | 505 resource.GetType() == Resource::k##typeName); |
| 506 | 506 |
| 507 } // namespace blink | 507 } // namespace blink |
| 508 | 508 |
| 509 #endif | 509 #endif |
| OLD | NEW |