blob: f0c340cb4bb87dcd1ca5b13c2318e12546333a16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef JSXPATHNSRESOLVER_H__
#define JSXPATHNSRESOLVER_H__
#if ENABLE(XPATH)
#include <v8.h>
#include <wtf/RefCounted.h>
#include "XPathNSResolver.h"
namespace WebCore {
class String;
class JSXPathNSResolver : public XPathNSResolver {
public:
JSXPathNSResolver(v8::Handle<v8::Object> resolver);
virtual ~JSXPathNSResolver();
virtual String lookupNamespaceURI(const String& prefix);
private:
v8::Handle<v8::Object> m_resolver; // Handle to resolver object.
};
}
#endif // ENABLE(XPATH)
#endif // JSXPATHNSRESOLVER_H__
|