mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@ -67,27 +67,26 @@ class CefXmlReader : public virtual CefBaseRefCounted {
|
||||
// the cursor position was set successfully.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool MoveToNextNode() =0;
|
||||
virtual bool MoveToNextNode() = 0;
|
||||
|
||||
///
|
||||
// Close the document. This should be called directly to ensure that cleanup
|
||||
// occurs on the correct thread.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool Close() =0;
|
||||
virtual bool Close() = 0;
|
||||
|
||||
///
|
||||
// Returns true if an error has been reported by the XML parser.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool HasError() =0;
|
||||
virtual bool HasError() = 0;
|
||||
|
||||
///
|
||||
// Returns the error string.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetError() =0;
|
||||
|
||||
virtual CefString GetError() = 0;
|
||||
|
||||
// The below methods retrieve data for the node at the current cursor
|
||||
// position.
|
||||
@ -96,98 +95,98 @@ class CefXmlReader : public virtual CefBaseRefCounted {
|
||||
// Returns the node type.
|
||||
///
|
||||
/*--cef(default_retval=XML_NODE_UNSUPPORTED)--*/
|
||||
virtual NodeType GetType() =0;
|
||||
virtual NodeType GetType() = 0;
|
||||
|
||||
///
|
||||
// Returns the node depth. Depth starts at 0 for the root node.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual int GetDepth() =0;
|
||||
virtual int GetDepth() = 0;
|
||||
|
||||
///
|
||||
// Returns the local name. See
|
||||
// http://www.w3.org/TR/REC-xml-names/#NT-LocalPart for additional details.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetLocalName() =0;
|
||||
virtual CefString GetLocalName() = 0;
|
||||
|
||||
///
|
||||
// Returns the namespace prefix. See http://www.w3.org/TR/REC-xml-names/ for
|
||||
// additional details.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetPrefix() =0;
|
||||
virtual CefString GetPrefix() = 0;
|
||||
|
||||
///
|
||||
// Returns the qualified name, equal to (Prefix:)LocalName. See
|
||||
// http://www.w3.org/TR/REC-xml-names/#ns-qualnames for additional details.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetQualifiedName() =0;
|
||||
virtual CefString GetQualifiedName() = 0;
|
||||
|
||||
///
|
||||
// Returns the URI defining the namespace associated with the node. See
|
||||
// http://www.w3.org/TR/REC-xml-names/ for additional details.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetNamespaceURI() =0;
|
||||
virtual CefString GetNamespaceURI() = 0;
|
||||
|
||||
///
|
||||
// Returns the base URI of the node. See http://www.w3.org/TR/xmlbase/ for
|
||||
// additional details.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetBaseURI() =0;
|
||||
virtual CefString GetBaseURI() = 0;
|
||||
|
||||
///
|
||||
// Returns the xml:lang scope within which the node resides. See
|
||||
// http://www.w3.org/TR/REC-xml/#sec-lang-tag for additional details.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetXmlLang() =0;
|
||||
virtual CefString GetXmlLang() = 0;
|
||||
|
||||
///
|
||||
// Returns true if the node represents an empty element. <a/> is considered
|
||||
// empty but <a></a> is not.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool IsEmptyElement() =0;
|
||||
virtual bool IsEmptyElement() = 0;
|
||||
|
||||
///
|
||||
// Returns true if the node has a text value.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool HasValue() =0;
|
||||
virtual bool HasValue() = 0;
|
||||
|
||||
///
|
||||
// Returns the text value.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetValue() =0;
|
||||
virtual CefString GetValue() = 0;
|
||||
|
||||
///
|
||||
// Returns true if the node has attributes.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool HasAttributes() =0;
|
||||
virtual bool HasAttributes() = 0;
|
||||
|
||||
///
|
||||
// Returns the number of attributes.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual size_t GetAttributeCount() =0;
|
||||
virtual size_t GetAttributeCount() = 0;
|
||||
|
||||
///
|
||||
// Returns the value of the attribute at the specified 0-based index.
|
||||
///
|
||||
/*--cef(capi_name=get_attribute_byindex,index_param=index)--*/
|
||||
virtual CefString GetAttribute(int index) =0;
|
||||
virtual CefString GetAttribute(int index) = 0;
|
||||
|
||||
///
|
||||
// Returns the value of the attribute with the specified qualified name.
|
||||
///
|
||||
/*--cef(capi_name=get_attribute_byqname)--*/
|
||||
virtual CefString GetAttribute(const CefString& qualifiedName) =0;
|
||||
virtual CefString GetAttribute(const CefString& qualifiedName) = 0;
|
||||
|
||||
///
|
||||
// Returns the value of the attribute with the specified local name and
|
||||
@ -195,26 +194,25 @@ class CefXmlReader : public virtual CefBaseRefCounted {
|
||||
///
|
||||
/*--cef(capi_name=get_attribute_bylname)--*/
|
||||
virtual CefString GetAttribute(const CefString& localName,
|
||||
const CefString& namespaceURI) =0;
|
||||
const CefString& namespaceURI) = 0;
|
||||
|
||||
///
|
||||
// Returns an XML representation of the current node's children.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetInnerXml() =0;
|
||||
virtual CefString GetInnerXml() = 0;
|
||||
|
||||
///
|
||||
// Returns an XML representation of the current node including its children.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetOuterXml() =0;
|
||||
virtual CefString GetOuterXml() = 0;
|
||||
|
||||
///
|
||||
// Returns the line number for the current node.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual int GetLineNumber() =0;
|
||||
|
||||
virtual int GetLineNumber() = 0;
|
||||
|
||||
// Attribute nodes are not traversed by default. The below methods can be
|
||||
// used to move the cursor to an attribute node. MoveToCarryingElement() can
|
||||
@ -226,14 +224,14 @@ class CefXmlReader : public virtual CefBaseRefCounted {
|
||||
// true if the cursor position was set successfully.
|
||||
///
|
||||
/*--cef(capi_name=move_to_attribute_byindex,index_param=index)--*/
|
||||
virtual bool MoveToAttribute(int index) =0;
|
||||
virtual bool MoveToAttribute(int index) = 0;
|
||||
|
||||
///
|
||||
// Moves the cursor to the attribute with the specified qualified name.
|
||||
// Returns true if the cursor position was set successfully.
|
||||
///
|
||||
/*--cef(capi_name=move_to_attribute_byqname)--*/
|
||||
virtual bool MoveToAttribute(const CefString& qualifiedName) =0;
|
||||
virtual bool MoveToAttribute(const CefString& qualifiedName) = 0;
|
||||
|
||||
///
|
||||
// Moves the cursor to the attribute with the specified local name and
|
||||
@ -241,28 +239,28 @@ class CefXmlReader : public virtual CefBaseRefCounted {
|
||||
///
|
||||
/*--cef(capi_name=move_to_attribute_bylname)--*/
|
||||
virtual bool MoveToAttribute(const CefString& localName,
|
||||
const CefString& namespaceURI) =0;
|
||||
const CefString& namespaceURI) = 0;
|
||||
|
||||
///
|
||||
// Moves the cursor to the first attribute in the current element. Returns
|
||||
// true if the cursor position was set successfully.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool MoveToFirstAttribute() =0;
|
||||
virtual bool MoveToFirstAttribute() = 0;
|
||||
|
||||
///
|
||||
// Moves the cursor to the next attribute in the current element. Returns
|
||||
// true if the cursor position was set successfully.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool MoveToNextAttribute() =0;
|
||||
virtual bool MoveToNextAttribute() = 0;
|
||||
|
||||
///
|
||||
// Moves the cursor back to the carrying element. Returns true if the cursor
|
||||
// position was set successfully.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool MoveToCarryingElement() =0;
|
||||
virtual bool MoveToCarryingElement() = 0;
|
||||
};
|
||||
|
||||
#endif // CEF_INCLUDE_CEF_XML_READER_H_
|
||||
|
Reference in New Issue
Block a user