| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013, Google Inc. All rights reserved. | 2 * Copyright (C) 2013, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are met: | 5 * modification, are permitted provided that the following conditions are met: |
| 6 * | 6 * |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 class ExceptionState; | 35 class ExceptionState; |
| 36 class XPathExpression; | 36 class XPathExpression; |
| 37 class XPathResult; | 37 class XPathResult; |
| 38 | 38 |
| 39 class DocumentXPathEvaluator final | 39 class DocumentXPathEvaluator final |
| 40 : public GarbageCollected<DocumentXPathEvaluator>, | 40 : public GarbageCollected<DocumentXPathEvaluator>, |
| 41 public Supplement<Document> { | 41 public Supplement<Document> { |
| 42 USING_GARBAGE_COLLECTED_MIXIN(DocumentXPathEvaluator); | 42 USING_GARBAGE_COLLECTED_MIXIN(DocumentXPathEvaluator); |
| 43 | 43 |
| 44 public: | 44 public: |
| 45 static DocumentXPathEvaluator& from(Supplementable<Document>&); | 45 static DocumentXPathEvaluator& from(Document&); |
| 46 | 46 |
| 47 static XPathExpression* createExpression(Supplementable<Document>&, | 47 static XPathExpression* createExpression(Document&, |
| 48 const String& expression, | 48 const String& expression, |
| 49 XPathNSResolver*, | 49 XPathNSResolver*, |
| 50 ExceptionState&); | 50 ExceptionState&); |
| 51 static XPathNSResolver* createNSResolver(Supplementable<Document>&, | 51 static XPathNSResolver* createNSResolver(Document&, Node* nodeResolver); |
| 52 Node* nodeResolver); | 52 static XPathResult* evaluate(Document&, |
| 53 static XPathResult* evaluate(Supplementable<Document>&, | |
| 54 const String& expression, | 53 const String& expression, |
| 55 Node* contextNode, | 54 Node* contextNode, |
| 56 XPathNSResolver*, | 55 XPathNSResolver*, |
| 57 unsigned short type, | 56 unsigned short type, |
| 58 const ScriptValue&, | 57 const ScriptValue&, |
| 59 ExceptionState&); | 58 ExceptionState&); |
| 60 | 59 |
| 61 DECLARE_VIRTUAL_TRACE(); | 60 DECLARE_VIRTUAL_TRACE(); |
| 62 | 61 |
| 63 private: | 62 private: |
| 64 DocumentXPathEvaluator(); | 63 explicit DocumentXPathEvaluator(Document&); |
| 65 | 64 |
| 66 static const char* supplementName() { return "DocumentXPathEvaluator"; } | 65 static const char* supplementName() { return "DocumentXPathEvaluator"; } |
| 67 | 66 |
| 68 Member<XPathEvaluator> m_xpathEvaluator; | 67 Member<XPathEvaluator> m_xpathEvaluator; |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 } // namespace blink | 70 } // namespace blink |
| 72 | 71 |
| 73 #endif // DocumentXPathEvaluator_h | 72 #endif // DocumentXPathEvaluator_h |
| OLD | NEW |