| 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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 Resource::Type type() const { return m_type; } | 508 Resource::Type type() const { return m_type; } |
| 509 | 509 |
| 510 protected: | 510 protected: |
| 511 explicit ResourceFactory(Resource::Type type) : m_type(type) {} | 511 explicit ResourceFactory(Resource::Type type) : m_type(type) {} |
| 512 | 512 |
| 513 Resource::Type m_type; | 513 Resource::Type m_type; |
| 514 }; | 514 }; |
| 515 | 515 |
| 516 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 516 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 517 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 517 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
| 518 resource->getType() == Resource::typeName, \ | 518 resource->getType() == Resource::k##typeName, \ |
| 519 resource.getType() == Resource::typeName); | 519 resource.getType() == Resource::k##typeName); |
| 520 | 520 |
| 521 } // namespace blink | 521 } // namespace blink |
| 522 | 522 |
| 523 #endif | 523 #endif |
| OLD | NEW |