Commit 3be2fd75 authored by tasak@google.com's avatar tasak@google.com

Delete operator= of V8DOMConfiguration structures instead of NONCOPYABLE

This is for fixing gcc builds caused by r200693.
https://src.chromium.org/viewvc/blink?view=rev&revision=200693

BUG=

Review URL: https://codereview.chromium.org/1307503002

git-svn-id: svn://svn.chromium.org/blink/trunk@200898 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 6dd786c5
...@@ -66,7 +66,7 @@ public: ...@@ -66,7 +66,7 @@ public:
// AttributeConfiguration translates into calls to SetAccessor() on either // AttributeConfiguration translates into calls to SetAccessor() on either
// the instance or the prototype ObjectTemplate, based on |instanceOrPrototypeConfiguration|. // the instance or the prototype ObjectTemplate, based on |instanceOrPrototypeConfiguration|.
struct AttributeConfiguration { struct AttributeConfiguration {
WTF_MAKE_NONCOPYABLE(AttributeConfiguration); AttributeConfiguration& operator=(const AttributeConfiguration&) = delete;
DISALLOW_ALLOCATION(); DISALLOW_ALLOCATION();
const char* const name; const char* const name;
v8::AccessorNameGetterCallback getter; v8::AccessorNameGetterCallback getter;
...@@ -88,7 +88,7 @@ public: ...@@ -88,7 +88,7 @@ public:
// AccessorConfiguration translates into calls to SetAccessorProperty() // AccessorConfiguration translates into calls to SetAccessorProperty()
// on prototype ObjectTemplate. // on prototype ObjectTemplate.
struct AccessorConfiguration { struct AccessorConfiguration {
WTF_MAKE_NONCOPYABLE(AccessorConfiguration); AccessorConfiguration& operator=(const AccessorConfiguration&) = delete;
DISALLOW_ALLOCATION(); DISALLOW_ALLOCATION();
const char* const name; const char* const name;
v8::FunctionCallback getter; v8::FunctionCallback getter;
...@@ -123,7 +123,7 @@ public: ...@@ -123,7 +123,7 @@ public:
// object's constants. It sets the constant on both the FunctionTemplate and // object's constants. It sets the constant on both the FunctionTemplate and
// the ObjectTemplate. PropertyAttributes is always ReadOnly. // the ObjectTemplate. PropertyAttributes is always ReadOnly.
struct ConstantConfiguration { struct ConstantConfiguration {
WTF_MAKE_NONCOPYABLE(ConstantConfiguration); ConstantConfiguration& operator=(const ConstantConfiguration&) = delete;
DISALLOW_ALLOCATION(); DISALLOW_ALLOCATION();
const char* const name; const char* const name;
int ivalue; int ivalue;
...@@ -150,7 +150,7 @@ public: ...@@ -150,7 +150,7 @@ public:
// object's callbacks. It sets the method on both the FunctionTemplate or // object's callbacks. It sets the method on both the FunctionTemplate or
// the ObjectTemplate. // the ObjectTemplate.
struct MethodConfiguration { struct MethodConfiguration {
WTF_MAKE_NONCOPYABLE(MethodConfiguration); MethodConfiguration& operator=(const MethodConfiguration&) = delete;
DISALLOW_ALLOCATION(); DISALLOW_ALLOCATION();
v8::Local<v8::Name> methodName(v8::Isolate* isolate) const { return v8AtomicString(isolate, name); } v8::Local<v8::Name> methodName(v8::Isolate* isolate) const { return v8AtomicString(isolate, name); }
v8::FunctionCallback callbackForWorld(const DOMWrapperWorld& world) const v8::FunctionCallback callbackForWorld(const DOMWrapperWorld& world) const
...@@ -166,7 +166,7 @@ public: ...@@ -166,7 +166,7 @@ public:
}; };
struct SymbolKeyedMethodConfiguration { struct SymbolKeyedMethodConfiguration {
WTF_MAKE_NONCOPYABLE(SymbolKeyedMethodConfiguration); SymbolKeyedMethodConfiguration& operator=(const SymbolKeyedMethodConfiguration&) = delete;
DISALLOW_ALLOCATION(); DISALLOW_ALLOCATION();
v8::Local<v8::Name> methodName(v8::Isolate* isolate) const { return getSymbol(isolate); } v8::Local<v8::Name> methodName(v8::Isolate* isolate) const { return getSymbol(isolate); }
v8::FunctionCallback callbackForWorld(const DOMWrapperWorld&) const v8::FunctionCallback callbackForWorld(const DOMWrapperWorld&) const
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment