Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: Source/core/xml/XPathResult.h

Issue 21735005: Use "int" instead of "long" for bindings where the WebIDL uses "long". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/xml/XMLHttpRequest.cpp ('k') | Source/core/xml/XPathResult.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org>
3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void convertTo(unsigned short type, ExceptionCode&); 60 void convertTo(unsigned short type, ExceptionCode&);
61 61
62 unsigned short resultType() const; 62 unsigned short resultType() const;
63 63
64 double numberValue(ExceptionCode&) const; 64 double numberValue(ExceptionCode&) const;
65 String stringValue(ExceptionCode&) const; 65 String stringValue(ExceptionCode&) const;
66 bool booleanValue(ExceptionCode&) const; 66 bool booleanValue(ExceptionCode&) const;
67 Node* singleNodeValue(ExceptionCode&) const; 67 Node* singleNodeValue(ExceptionCode&) const;
68 68
69 bool invalidIteratorState() const; 69 bool invalidIteratorState() const;
70 unsigned long snapshotLength(ExceptionCode&) const; 70 unsigned snapshotLength(ExceptionCode&) const;
71 Node* iterateNext(ExceptionCode&); 71 Node* iterateNext(ExceptionCode&);
72 Node* snapshotItem(unsigned long index, ExceptionCode&); 72 Node* snapshotItem(unsigned index, ExceptionCode&);
73 73
74 const XPath::Value& value() const { return m_value; } 74 const XPath::Value& value() const { return m_value; }
75 75
76 private: 76 private:
77 XPathResult(Document*, const XPath::Value&); 77 XPathResult(Document*, const XPath::Value&);
78 78
79 XPath::Value m_value; 79 XPath::Value m_value;
80 unsigned m_nodeSetPosition; 80 unsigned m_nodeSetPosition;
81 XPath::NodeSet m_nodeSet; // FIXME: why duplicate the node set stored in m_v alue? 81 XPath::NodeSet m_nodeSet; // FIXME: why duplicate the node set stored in m_v alue?
82 unsigned short m_resultType; 82 unsigned short m_resultType;
83 RefPtr<Document> m_document; 83 RefPtr<Document> m_document;
84 uint64_t m_domTreeVersion; 84 uint64_t m_domTreeVersion;
85 }; 85 };
86 86
87 } // namespace WebCore 87 } // namespace WebCore
88 88
89 #endif // XPathResult_h 89 #endif // XPathResult_h
OLDNEW
« no previous file with comments | « Source/core/xml/XMLHttpRequest.cpp ('k') | Source/core/xml/XPathResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698