| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2000 Frederik Holljen (frederik.holljen@hig.no) | 3 * Copyright (C) 2000 Frederik Holljen (frederik.holljen@hig.no) |
| 4 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 4 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2004, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2008, 2009 Apple Inc. All 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 14 matching lines...) Expand all Loading... |
| 25 #ifndef NodeFilter_h | 25 #ifndef NodeFilter_h |
| 26 #define NodeFilter_h | 26 #define NodeFilter_h |
| 27 | 27 |
| 28 #include "bindings/core/v8/ScriptWrappable.h" | 28 #include "bindings/core/v8/ScriptWrappable.h" |
| 29 #include "core/dom/NodeFilterCondition.h" | 29 #include "core/dom/NodeFilterCondition.h" |
| 30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
| 31 #include "wtf/RefPtr.h" | 31 #include "wtf/RefPtr.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class NodeFilter FINAL : public RefCountedWillBeGarbageCollected<NodeFilter>, pu
blic ScriptWrappable { | 35 class NodeFilter final : public RefCountedWillBeGarbageCollected<NodeFilter>, pu
blic ScriptWrappable { |
| 36 DEFINE_WRAPPERTYPEINFO(); | 36 DEFINE_WRAPPERTYPEINFO(); |
| 37 public: | 37 public: |
| 38 /** | 38 /** |
| 39 * The following constants are returned by the acceptNode() | 39 * The following constants are returned by the acceptNode() |
| 40 * method: | 40 * method: |
| 41 */ | 41 */ |
| 42 enum { | 42 enum { |
| 43 FILTER_ACCEPT = 1, | 43 FILTER_ACCEPT = 1, |
| 44 FILTER_REJECT = 2, | 44 FILTER_REJECT = 2, |
| 45 FILTER_SKIP = 3 | 45 FILTER_SKIP = 3 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 explicit NodeFilter(PassRefPtrWillBeRawPtr<NodeFilterCondition> condition) :
m_condition(condition) { } | 90 explicit NodeFilter(PassRefPtrWillBeRawPtr<NodeFilterCondition> condition) :
m_condition(condition) { } |
| 91 | 91 |
| 92 NodeFilter() { } | 92 NodeFilter() { } |
| 93 | 93 |
| 94 RefPtrWillBeMember<NodeFilterCondition> m_condition; | 94 RefPtrWillBeMember<NodeFilterCondition> m_condition; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif // NodeFilter_h | 99 #endif // NodeFilter_h |
| OLD | NEW |