Apply clang-format to all C, C++ and ObjC files (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-17 11:29:28 +02:00
parent a566549e04
commit 31d9407ee2
1331 changed files with 33014 additions and 32258 deletions

View File

@ -38,8 +38,8 @@
#define CEF_INCLUDE_CEF_DOM_H_
#pragma once
#include "include/cef_base.h"
#include <map>
#include "include/cef_base.h"
class CefDOMDocument;
class CefDOMNode;
@ -59,10 +59,9 @@ class CefDOMVisitor : public virtual CefBaseRefCounted {
// of this method.
///
/*--cef()--*/
virtual void Visit(CefRefPtr<CefDOMDocument> document) =0;
virtual void Visit(CefRefPtr<CefDOMDocument> document) = 0;
};
///
// Class used to represent a DOM document. The methods of this class should only
// be called on the render process main thread thread.
@ -76,89 +75,88 @@ class CefDOMDocument : public virtual CefBaseRefCounted {
// Returns the document type.
///
/*--cef(default_retval=DOM_DOCUMENT_TYPE_UNKNOWN)--*/
virtual Type GetType() =0;
virtual Type GetType() = 0;
///
// Returns the root document node.
///
/*--cef()--*/
virtual CefRefPtr<CefDOMNode> GetDocument() =0;
virtual CefRefPtr<CefDOMNode> GetDocument() = 0;
///
// Returns the BODY node of an HTML document.
///
/*--cef()--*/
virtual CefRefPtr<CefDOMNode> GetBody() =0;
virtual CefRefPtr<CefDOMNode> GetBody() = 0;
///
// Returns the HEAD node of an HTML document.
///
/*--cef()--*/
virtual CefRefPtr<CefDOMNode> GetHead() =0;
virtual CefRefPtr<CefDOMNode> GetHead() = 0;
///
// Returns the title of an HTML document.
///
/*--cef()--*/
virtual CefString GetTitle() =0;
virtual CefString GetTitle() = 0;
///
// Returns the document element with the specified ID value.
///
/*--cef()--*/
virtual CefRefPtr<CefDOMNode> GetElementById(const CefString& id) =0;
virtual CefRefPtr<CefDOMNode> GetElementById(const CefString& id) = 0;
///
// Returns the node that currently has keyboard focus.
///
/*--cef()--*/
virtual CefRefPtr<CefDOMNode> GetFocusedNode() =0;
virtual CefRefPtr<CefDOMNode> GetFocusedNode() = 0;
///
// Returns true if a portion of the document is selected.
///
/*--cef()--*/
virtual bool HasSelection() =0;
virtual bool HasSelection() = 0;
///
// Returns the selection offset within the start node.
///
/*--cef()--*/
virtual int GetSelectionStartOffset() =0;
virtual int GetSelectionStartOffset() = 0;
///
// Returns the selection offset within the end node.
///
/*--cef()--*/
virtual int GetSelectionEndOffset() =0;
virtual int GetSelectionEndOffset() = 0;
///
// Returns the contents of this selection as markup.
///
/*--cef()--*/
virtual CefString GetSelectionAsMarkup() =0;
virtual CefString GetSelectionAsMarkup() = 0;
///
// Returns the contents of this selection as text.
///
/*--cef()--*/
virtual CefString GetSelectionAsText() =0;
virtual CefString GetSelectionAsText() = 0;
///
// Returns the base URL for the document.
///
/*--cef()--*/
virtual CefString GetBaseURL() =0;
virtual CefString GetBaseURL() = 0;
///
// Returns a complete URL based on the document base URL and the specified
// partial URL.
///
/*--cef()--*/
virtual CefString GetCompleteURL(const CefString& partialURL) =0;
virtual CefString GetCompleteURL(const CefString& partialURL) = 0;
};
///
// Class used to represent a DOM node. The methods of this class should only be
// called on the render process main thread.
@ -173,110 +171,110 @@ class CefDOMNode : public virtual CefBaseRefCounted {
// Returns the type for this node.
///
/*--cef(default_retval=DOM_NODE_TYPE_UNSUPPORTED)--*/
virtual Type GetType() =0;
virtual Type GetType() = 0;
///
// Returns true if this is a text node.
///
/*--cef()--*/
virtual bool IsText() =0;
virtual bool IsText() = 0;
///
// Returns true if this is an element node.
///
/*--cef()--*/
virtual bool IsElement() =0;
virtual bool IsElement() = 0;
///
// Returns true if this is an editable node.
///
/*--cef()--*/
virtual bool IsEditable() =0;
virtual bool IsEditable() = 0;
///
// Returns true if this is a form control element node.
///
/*--cef()--*/
virtual bool IsFormControlElement() =0;
virtual bool IsFormControlElement() = 0;
///
// Returns the type of this form control element node.
///
/*--cef()--*/
virtual CefString GetFormControlElementType() =0;
virtual CefString GetFormControlElementType() = 0;
///
// Returns true if this object is pointing to the same handle as |that|
// object.
///
/*--cef()--*/
virtual bool IsSame(CefRefPtr<CefDOMNode> that) =0;
virtual bool IsSame(CefRefPtr<CefDOMNode> that) = 0;
///
// Returns the name of this node.
///
/*--cef()--*/
virtual CefString GetName() =0;
virtual CefString GetName() = 0;
///
// Returns the value of this node.
///
/*--cef()--*/
virtual CefString GetValue() =0;
virtual CefString GetValue() = 0;
///
// Set the value of this node. Returns true on success.
///
/*--cef()--*/
virtual bool SetValue(const CefString& value) =0;
virtual bool SetValue(const CefString& value) = 0;
///
// Returns the contents of this node as markup.
///
/*--cef()--*/
virtual CefString GetAsMarkup() =0;
virtual CefString GetAsMarkup() = 0;
///
// Returns the document associated with this node.
///
/*--cef()--*/
virtual CefRefPtr<CefDOMDocument> GetDocument() =0;
virtual CefRefPtr<CefDOMDocument> GetDocument() = 0;
///
// Returns the parent node.
///
/*--cef()--*/
virtual CefRefPtr<CefDOMNode> GetParent() =0;
virtual CefRefPtr<CefDOMNode> GetParent() = 0;
///
// Returns the previous sibling node.
///
/*--cef()--*/
virtual CefRefPtr<CefDOMNode> GetPreviousSibling() =0;
virtual CefRefPtr<CefDOMNode> GetPreviousSibling() = 0;
///
// Returns the next sibling node.
///
/*--cef()--*/
virtual CefRefPtr<CefDOMNode> GetNextSibling() =0;
virtual CefRefPtr<CefDOMNode> GetNextSibling() = 0;
///
// Returns true if this node has child nodes.
///
/*--cef()--*/
virtual bool HasChildren() =0;
virtual bool HasChildren() = 0;
///
// Return the first child node.
///
/*--cef()--*/
virtual CefRefPtr<CefDOMNode> GetFirstChild() =0;
virtual CefRefPtr<CefDOMNode> GetFirstChild() = 0;
///
// Returns the last child node.
///
/*--cef()--*/
virtual CefRefPtr<CefDOMNode> GetLastChild() =0;
virtual CefRefPtr<CefDOMNode> GetLastChild() = 0;
// The following methods are valid only for element nodes.
@ -284,31 +282,31 @@ class CefDOMNode : public virtual CefBaseRefCounted {
// Returns the tag name of this element.
///
/*--cef()--*/
virtual CefString GetElementTagName() =0;
virtual CefString GetElementTagName() = 0;
///
// Returns true if this element has attributes.
///
/*--cef()--*/
virtual bool HasElementAttributes() =0;
virtual bool HasElementAttributes() = 0;
///
// Returns true if this element has an attribute named |attrName|.
///
/*--cef()--*/
virtual bool HasElementAttribute(const CefString& attrName) =0;
virtual bool HasElementAttribute(const CefString& attrName) = 0;
///
// Returns the element attribute named |attrName|.
///
/*--cef()--*/
virtual CefString GetElementAttribute(const CefString& attrName) =0;
virtual CefString GetElementAttribute(const CefString& attrName) = 0;
///
// Returns a map of all element attributes.
///
/*--cef()--*/
virtual void GetElementAttributes(AttributeMap& attrMap) =0;
virtual void GetElementAttributes(AttributeMap& attrMap) = 0;
///
// Set the value for the element attribute named |attrName|. Returns true on
@ -316,19 +314,19 @@ class CefDOMNode : public virtual CefBaseRefCounted {
///
/*--cef()--*/
virtual bool SetElementAttribute(const CefString& attrName,
const CefString& value) =0;
const CefString& value) = 0;
///
// Returns the inner text of the element.
///
/*--cef()--*/
virtual CefString GetElementInnerText() =0;
virtual CefString GetElementInnerText() = 0;
///
// Returns the bounds of the element.
///
/*--cef()--*/
virtual CefRect GetElementBounds() =0;
virtual CefRect GetElementBounds() = 0;
};
#endif // CEF_INCLUDE_CEF_DOM_H_