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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/NodeOrNodeList.h

Issue 2452403002: [Bindings] Reformat template files (4/4) (Closed)
Patch Set: Rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/tests/results/core/NodeOrNodeList.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/NodeOrNodeList.h b/third_party/WebKit/Source/bindings/tests/results/core/NodeOrNodeList.h
index e577bdf862adedf1cb615caecb1459e5765a909c..9f2b055c73ff7cb26195aa7b336a4d3a32bd9d1c 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/NodeOrNodeList.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/NodeOrNodeList.h
@@ -20,59 +20,58 @@ class Node;
class NodeList;
class CORE_EXPORT NodeOrNodeList final {
- DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
-public:
- NodeOrNodeList();
- bool isNull() const { return m_type == SpecificTypeNone; }
-
- bool isNode() const { return m_type == SpecificTypeNode; }
- Node* getAsNode() const;
- void setNode(Node*);
- static NodeOrNodeList fromNode(Node*);
-
- bool isNodeList() const { return m_type == SpecificTypeNodeList; }
- NodeList* getAsNodeList() const;
- void setNodeList(NodeList*);
- static NodeOrNodeList fromNodeList(NodeList*);
-
- NodeOrNodeList(const NodeOrNodeList&);
- ~NodeOrNodeList();
- NodeOrNodeList& operator=(const NodeOrNodeList&);
- DECLARE_TRACE();
-
-private:
- enum SpecificTypes {
- SpecificTypeNone,
- SpecificTypeNode,
- SpecificTypeNodeList,
- };
- SpecificTypes m_type;
-
- Member<Node> m_node;
- Member<NodeList> m_nodeList;
-
- friend CORE_EXPORT v8::Local<v8::Value> toV8(const NodeOrNodeList&, v8::Local<v8::Object>, v8::Isolate*);
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
+ public:
+ NodeOrNodeList();
+ bool isNull() const { return m_type == SpecificTypeNone; }
+
+ bool isNode() const { return m_type == SpecificTypeNode; }
+ Node* getAsNode() const;
+ void setNode(Node*);
+ static NodeOrNodeList fromNode(Node*);
+
+ bool isNodeList() const { return m_type == SpecificTypeNodeList; }
+ NodeList* getAsNodeList() const;
+ void setNodeList(NodeList*);
+ static NodeOrNodeList fromNodeList(NodeList*);
+
+ NodeOrNodeList(const NodeOrNodeList&);
+ ~NodeOrNodeList();
+ NodeOrNodeList& operator=(const NodeOrNodeList&);
+ DECLARE_TRACE();
+
+ private:
+ enum SpecificTypes {
+ SpecificTypeNone,
+ SpecificTypeNode,
+ SpecificTypeNodeList,
+ };
+ SpecificTypes m_type;
+
+ Member<Node> m_node;
+ Member<NodeList> m_nodeList;
+
+ friend CORE_EXPORT v8::Local<v8::Value> toV8(const NodeOrNodeList&, v8::Local<v8::Object>, v8::Isolate*);
};
class V8NodeOrNodeList final {
-public:
- CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, NodeOrNodeList&, UnionTypeConversionMode, ExceptionState&);
+ public:
+ CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, NodeOrNodeList&, UnionTypeConversionMode, ExceptionState&);
};
CORE_EXPORT v8::Local<v8::Value> toV8(const NodeOrNodeList&, v8::Local<v8::Object>, v8::Isolate*);
template <class CallbackInfo>
-inline void v8SetReturnValue(const CallbackInfo& callbackInfo, NodeOrNodeList& impl)
-{
- v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
+inline void v8SetReturnValue(const CallbackInfo& callbackInfo, NodeOrNodeList& impl) {
+ v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
}
template <>
struct NativeValueTraits<NodeOrNodeList> {
- CORE_EXPORT static NodeOrNodeList nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&);
+ CORE_EXPORT static NodeOrNodeList nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&);
};
-} // namespace blink
+} // namespace blink
// We need to set canInitializeWithMemset=true because HeapVector supports
// items that can initialize with memset or have a vtable. It is safe to
@@ -80,4 +79,4 @@ struct NativeValueTraits<NodeOrNodeList> {
// See https://codereview.chromium.org/1118993002/#msg5 for more details.
WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::NodeOrNodeList);
-#endif // NodeOrNodeList_h
+#endif // NodeOrNodeList_h

Powered by Google App Engine
This is Rietveld 408576698