Title: [104639] trunk/Source/WebCore
Revision
104639
Author
[email protected]
Date
2012-01-10 15:35:38 -0800 (Tue, 10 Jan 2012)

Log Message

[Refactoring] Rename attributes in TestSupplemental.idl to clarify
that they are supplemental attributes
https://bugs.webkit.org/show_bug.cgi?id=75942

Reviewed by Adam Barth.

This patch just renames attributes in TestSupplemental.idl
to make it easy to find in {JS,V8,WebKitDOM,DOM,WebDOM}TestInterface.cpp
which attributes originate from TestSupplemental.idl.

* bindings/scripts/test/TestSupplemental.idl: Just renamed three attributes.

* bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Updated the test result.
(WebDOMTestInterface::supplementalStr1):
(WebDOMTestInterface::supplementalStr2):
(WebDOMTestInterface::setSupplementalStr2):
* bindings/scripts/test/CPP/WebDOMTestInterface.h: Ditto.
* bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: Ditto.
(webkit_dom_test_interface_get_supplemental_str1):
(webkit_dom_test_interface_get_supplemental_str2):
(webkit_dom_test_interface_set_supplemental_str2):
(webkit_dom_test_interface_set_property):
(webkit_dom_test_interface_get_property):
(webkit_dom_test_interface_class_init):
* bindings/scripts/test/GObject/WebKitDOMTestInterface.h: Ditto.
* bindings/scripts/test/JS/JSTestInterface.cpp: Ditto.
(WebCore::jsTestInterfaceSupplementalStr1):
(WebCore::jsTestInterfaceSupplementalStr2):
(WebCore::jsTestInterface):
(WebCore::setJSTestInterfaceSupplementalStr2):
(WebCore::setJSTestInterface):
* bindings/scripts/test/JS/JSTestInterface.h: Ditto.
* bindings/scripts/test/ObjC/DOMTestInterface.h: Ditto.
* bindings/scripts/test/ObjC/DOMTestInterface.mm: Ditto.
(-[DOMTestInterface supplementalStr1]):
(-[DOMTestInterface supplementalStr2]):
(-[DOMTestInterface setSupplementalStr2:]):
(-[DOMTestInterface ]):
(-[DOMTestInterface set:]):
* bindings/scripts/test/V8/V8TestInterface.cpp: Ditto.
(WebCore::TestInterfaceInternal::supplementalStr1AttrGetter):
(WebCore::TestInterfaceInternal::supplementalStr2AttrGetter):
(WebCore::TestInterfaceInternal::supplementalStr2AttrSetter):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (104638 => 104639)


--- trunk/Source/WebCore/ChangeLog	2012-01-10 23:35:33 UTC (rev 104638)
+++ trunk/Source/WebCore/ChangeLog	2012-01-10 23:35:38 UTC (rev 104639)
@@ -1,3 +1,49 @@
+2012-01-10  Kentaro Hara  <[email protected]>
+
+        [Refactoring] Rename attributes in TestSupplemental.idl to clarify
+        that they are supplemental attributes
+        https://bugs.webkit.org/show_bug.cgi?id=75942
+
+        Reviewed by Adam Barth.
+
+        This patch just renames attributes in TestSupplemental.idl
+        to make it easy to find in {JS,V8,WebKitDOM,DOM,WebDOM}TestInterface.cpp
+        which attributes originate from TestSupplemental.idl.
+
+        * bindings/scripts/test/TestSupplemental.idl: Just renamed three attributes.
+
+        * bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Updated the test result.
+        (WebDOMTestInterface::supplementalStr1):
+        (WebDOMTestInterface::supplementalStr2):
+        (WebDOMTestInterface::setSupplementalStr2):
+        * bindings/scripts/test/CPP/WebDOMTestInterface.h: Ditto.
+        * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: Ditto.
+        (webkit_dom_test_interface_get_supplemental_str1):
+        (webkit_dom_test_interface_get_supplemental_str2):
+        (webkit_dom_test_interface_set_supplemental_str2):
+        (webkit_dom_test_interface_set_property):
+        (webkit_dom_test_interface_get_property):
+        (webkit_dom_test_interface_class_init):
+        * bindings/scripts/test/GObject/WebKitDOMTestInterface.h: Ditto.
+        * bindings/scripts/test/JS/JSTestInterface.cpp: Ditto.
+        (WebCore::jsTestInterfaceSupplementalStr1):
+        (WebCore::jsTestInterfaceSupplementalStr2):
+        (WebCore::jsTestInterface):
+        (WebCore::setJSTestInterfaceSupplementalStr2):
+        (WebCore::setJSTestInterface):
+        * bindings/scripts/test/JS/JSTestInterface.h: Ditto.
+        * bindings/scripts/test/ObjC/DOMTestInterface.h: Ditto.
+        * bindings/scripts/test/ObjC/DOMTestInterface.mm: Ditto.
+        (-[DOMTestInterface supplementalStr1]):
+        (-[DOMTestInterface supplementalStr2]):
+        (-[DOMTestInterface setSupplementalStr2:]):
+        (-[DOMTestInterface ]):
+        (-[DOMTestInterface set:]):
+        * bindings/scripts/test/V8/V8TestInterface.cpp: Ditto.
+        (WebCore::TestInterfaceInternal::supplementalStr1AttrGetter):
+        (WebCore::TestInterfaceInternal::supplementalStr2AttrGetter):
+        (WebCore::TestInterfaceInternal::supplementalStr2AttrSetter):
+
 2012-01-10  John Bauman  <[email protected]>
 
         [chromium] Correctly recreate DrawingBuffer on lost device

Modified: trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.cpp (104638 => 104639)


--- trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.cpp	2012-01-10 23:35:33 UTC (rev 104638)
+++ trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.cpp	2012-01-10 23:35:38 UTC (rev 104639)
@@ -79,30 +79,30 @@
 }
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
-WebDOMString WebDOMTestInterface::str1() const
+WebDOMString WebDOMTestInterface::supplementalStr1() const
 {
     if (!impl())
         return WebDOMString();
 
-    return static_cast<const WTF::String&>(TestSupplemental::str1(impl()));
+    return static_cast<const WTF::String&>(TestSupplemental::supplementalStr1(impl()));
 }
 
 #endif
 #if ENABLE(Condition11) || ENABLE(Condition12)
-WebDOMString WebDOMTestInterface::str2() const
+WebDOMString WebDOMTestInterface::supplementalStr2() const
 {
     if (!impl())
         return WebDOMString();
 
-    return static_cast<const WTF::String&>(TestSupplemental::str2(impl()));
+    return static_cast<const WTF::String&>(TestSupplemental::supplementalStr2(impl()));
 }
 
-void WebDOMTestInterface::setStr2(const WebDOMString& newStr2)
+void WebDOMTestInterface::setSupplementalStr2(const WebDOMString& newSupplementalStr2)
 {
     if (!impl())
         return;
 
-    TestSupplemental::setStr2(impl(), newStr2);
+    TestSupplemental::setSupplementalStr2(impl(), newSupplementalStr2);
 }
 
 #endif

Modified: trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.h (104638 => 104639)


--- trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.h	2012-01-10 23:35:33 UTC (rev 104638)
+++ trunk/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.h	2012-01-10 23:35:38 UTC (rev 104639)
@@ -42,11 +42,11 @@
     virtual ~WebDOMTestInterface();
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    WebDOMString str1() const;
+    WebDOMString supplementalStr1() const;
 #endif
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    WebDOMString str2() const;
-    void setStr2(const WebDOMString&);
+    WebDOMString supplementalStr2() const;
+    void setSupplementalStr2(const WebDOMString&);
 #endif
 
     WebCore::TestInterface* impl() const;

Modified: trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp (104638 => 104639)


--- trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp	2012-01-10 23:35:33 UTC (rev 104638)
+++ trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp	2012-01-10 23:35:38 UTC (rev 104639)
@@ -53,13 +53,13 @@
 } // namespace WebKit //
 
 gchar*
-webkit_dom_test_interface_get_str1(WebKitDOMTestInterface* self)
+webkit_dom_test_interface_get_supplemental_str1(WebKitDOMTestInterface* self)
 {
 #if ENABLE(Condition11) || ENABLE(Condition12)
     g_return_val_if_fail(self, 0);
     WebCore::JSMainThreadNullState state;
     WebCore::TestInterface * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(TestSupplemental::str1(item));
+    gchar* res = convertToUTF8String(TestSupplemental::supplementalStr1(item));
     return res;
 #else
     return NULL;
@@ -67,13 +67,13 @@
 }
 
 gchar*
-webkit_dom_test_interface_get_str2(WebKitDOMTestInterface* self)
+webkit_dom_test_interface_get_supplemental_str2(WebKitDOMTestInterface* self)
 {
 #if ENABLE(Condition11) || ENABLE(Condition12)
     g_return_val_if_fail(self, 0);
     WebCore::JSMainThreadNullState state;
     WebCore::TestInterface * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(TestSupplemental::str2(item));
+    gchar* res = convertToUTF8String(TestSupplemental::supplementalStr2(item));
     return res;
 #else
     return NULL;
@@ -81,7 +81,7 @@
 }
 
 void
-webkit_dom_test_interface_set_str2(WebKitDOMTestInterface* self, const gchar* value)
+webkit_dom_test_interface_set_supplemental_str2(WebKitDOMTestInterface* self, const gchar* value)
 {
 #if ENABLE(Condition11) || ENABLE(Condition12)
     g_return_if_fail(self);
@@ -89,7 +89,7 @@
     WebCore::TestInterface * item = WebKit::core(self);
     g_return_if_fail(value);
     WTF::String converted_value = WTF::String::fromUTF8(value);
-    TestSupplemental::setStr2(item, converted_value);
+    TestSupplemental::setSupplementalStr2(item, converted_value);
 #endif /* ENABLE(Condition11) || ENABLE(Condition12) */
 }
 
@@ -112,10 +112,10 @@
 enum {
     PROP_0,
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    PROP_STR1,
+    PROP_SUPPLEMENTAL_STR1,
 #endif /* ENABLE(Condition11) || ENABLE(Condition12) */
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    PROP_STR2,
+    PROP_SUPPLEMENTAL_STR2,
 #endif /* ENABLE(Condition11) || ENABLE(Condition12) */
 };
 
@@ -143,9 +143,9 @@
     WebCore::TestInterface* coreSelf = WebKit::core(self);
     switch (prop_id) {
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    case PROP_STR2:
+    case PROP_SUPPLEMENTAL_STR2:
     {
-        TestSupplemental::setStr2(coreSelf, WTF::String::fromUTF8(g_value_get_string(value)));
+        TestSupplemental::setSupplementalStr2(coreSelf, WTF::String::fromUTF8(g_value_get_string(value)));
         break;
     }
 #endif /* ENABLE(Condition11) || ENABLE(Condition12) */
@@ -163,16 +163,16 @@
     WebCore::TestInterface* coreSelf = WebKit::core(self);
     switch (prop_id) {
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    case PROP_STR1:
+    case PROP_SUPPLEMENTAL_STR1:
     {
-        g_value_take_string(value, convertToUTF8String(TestSupplemental::str1(coreSelf)));
+        g_value_take_string(value, convertToUTF8String(TestSupplemental::supplementalStr1(coreSelf)));
         break;
     }
 #endif /* ENABLE(Condition11) || ENABLE(Condition12) */
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    case PROP_STR2:
+    case PROP_SUPPLEMENTAL_STR2:
     {
-        g_value_take_string(value, convertToUTF8String(TestSupplemental::str2(coreSelf)));
+        g_value_take_string(value, convertToUTF8String(TestSupplemental::supplementalStr2(coreSelf)));
         break;
     }
 #endif /* ENABLE(Condition11) || ENABLE(Condition12) */
@@ -200,19 +200,19 @@
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
     g_object_class_install_property(gobjectClass,
-                                    PROP_STR1,
-                                    g_param_spec_string("str1", /* name */
-                                                           "test_interface_str1", /* short description */
-                                                           "read-only  gchar* TestInterface.str1", /* longer - could do with some extra doc stuff here */
+                                    PROP_SUPPLEMENTAL_STR1,
+                                    g_param_spec_string("supplemental-str1", /* name */
+                                                           "test_interface_supplemental-str1", /* short description */
+                                                           "read-only  gchar* TestInterface.supplemental-str1", /* longer - could do with some extra doc stuff here */
                                                            "", /* default */
                                                            WEBKIT_PARAM_READABLE));
 #endif /* ENABLE(Condition11) || ENABLE(Condition12) */
 #if ENABLE(Condition11) || ENABLE(Condition12)
     g_object_class_install_property(gobjectClass,
-                                    PROP_STR2,
-                                    g_param_spec_string("str2", /* name */
-                                                           "test_interface_str2", /* short description */
-                                                           "read-write  gchar* TestInterface.str2", /* longer - could do with some extra doc stuff here */
+                                    PROP_SUPPLEMENTAL_STR2,
+                                    g_param_spec_string("supplemental-str2", /* name */
+                                                           "test_interface_supplemental-str2", /* short description */
+                                                           "read-write  gchar* TestInterface.supplemental-str2", /* longer - could do with some extra doc stuff here */
                                                            "", /* default */
                                                            WEBKIT_PARAM_READWRITE));
 #endif /* ENABLE(Condition11) || ENABLE(Condition12) */

Modified: trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.h (104638 => 104639)


--- trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.h	2012-01-10 23:35:33 UTC (rev 104638)
+++ trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.h	2012-01-10 23:35:38 UTC (rev 104639)
@@ -47,27 +47,27 @@
 webkit_dom_test_interface_get_type (void);
 
 /**
- * webkit_dom_test_interface_get_str1:
+ * webkit_dom_test_interface_get_supplemental_str1:
  * @self: A #WebKitDOMTestInterface
  *
  * Returns:
  *
 **/
 WEBKIT_API gchar*
-webkit_dom_test_interface_get_str1(WebKitDOMTestInterface* self);
+webkit_dom_test_interface_get_supplemental_str1(WebKitDOMTestInterface* self);
 
 /**
- * webkit_dom_test_interface_get_str2:
+ * webkit_dom_test_interface_get_supplemental_str2:
  * @self: A #WebKitDOMTestInterface
  *
  * Returns:
  *
 **/
 WEBKIT_API gchar*
-webkit_dom_test_interface_get_str2(WebKitDOMTestInterface* self);
+webkit_dom_test_interface_get_supplemental_str2(WebKitDOMTestInterface* self);
 
 /**
- * webkit_dom_test_interface_set_str2:
+ * webkit_dom_test_interface_set_supplemental_str2:
  * @self: A #WebKitDOMTestInterface
  * @value: A #gchar
  *
@@ -75,7 +75,7 @@
  *
 **/
 WEBKIT_API void
-webkit_dom_test_interface_set_str2(WebKitDOMTestInterface* self, const gchar* value);
+webkit_dom_test_interface_set_supplemental_str2(WebKitDOMTestInterface* self, const gchar* value);
 
 G_END_DECLS
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp (104638 => 104639)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp	2012-01-10 23:35:33 UTC (rev 104638)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp	2012-01-10 23:35:38 UTC (rev 104639)
@@ -49,19 +49,19 @@
 static const HashTableValue JSTestInterfaceTableValues[] =
 {
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    { "str1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestInterfaceStr1), (intptr_t)0, NoIntrinsic },
+    { "supplementalStr1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestInterfaceSupplementalStr1), (intptr_t)0, NoIntrinsic },
 #endif
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    { "str2", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestInterfaceStr2), (intptr_t)setJSTestInterfaceStr2, NoIntrinsic },
+    { "supplementalStr2", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestInterfaceSupplementalStr2), (intptr_t)setJSTestInterfaceSupplementalStr2, NoIntrinsic },
 #endif
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    { "str3", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestInterfaceStr3), (intptr_t)setJSTestInterfaceStr3, NoIntrinsic },
+    { "supplementalStr3", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestInterfaceSupplementalStr3), (intptr_t)setJSTestInterfaceSupplementalStr3, NoIntrinsic },
 #endif
     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestInterfaceConstructor), (intptr_t)0, NoIntrinsic },
     { 0, 0, 0, 0, NoIntrinsic }
 };
 
-static const HashTable JSTestInterfaceTable = { 8, 7, JSTestInterfaceTableValues, 0 };
+static const HashTable JSTestInterfaceTable = { 9, 7, JSTestInterfaceTableValues, 0 };
 /* Hash table for constructor */
 
 static const HashTableValue JSTestInterfaceConstructorTableValues[] =
@@ -180,35 +180,35 @@
 }
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
-JSValue jsTestInterfaceStr1(ExecState* exec, JSValue slotBase, const Identifier&)
+JSValue jsTestInterfaceSupplementalStr1(ExecState* exec, JSValue slotBase, const Identifier&)
 {
     JSTestInterface* castedThis = static_cast<JSTestInterface*>(asObject(slotBase));
     UNUSED_PARAM(exec);
     TestInterface* impl = static_cast<TestInterface*>(castedThis->impl());
-    JSValue result = jsString(exec, TestSupplemental::str1(impl));
+    JSValue result = jsString(exec, TestSupplemental::supplementalStr1(impl));
     return result;
 }
 
 #endif
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
-JSValue jsTestInterfaceStr2(ExecState* exec, JSValue slotBase, const Identifier&)
+JSValue jsTestInterfaceSupplementalStr2(ExecState* exec, JSValue slotBase, const Identifier&)
 {
     JSTestInterface* castedThis = static_cast<JSTestInterface*>(asObject(slotBase));
     UNUSED_PARAM(exec);
     TestInterface* impl = static_cast<TestInterface*>(castedThis->impl());
-    JSValue result = jsString(exec, TestSupplemental::str2(impl));
+    JSValue result = jsString(exec, TestSupplemental::supplementalStr2(impl));
     return result;
 }
 
 #endif
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
-JSValue jsTestInterfaceStr3(ExecState* exec, JSValue slotBase, const Identifier&)
+JSValue jsTestInterfaceSupplementalStr3(ExecState* exec, JSValue slotBase, const Identifier&)
 {
     JSTestInterface* castedThis = static_cast<JSTestInterface*>(asObject(slotBase));
     TestInterface* impl = static_cast<TestInterface*>(castedThis->impl());
-    return castedThis->str3(impl, exec);
+    return castedThis->supplementalStr3(impl, exec);
 }
 
 #endif
@@ -229,21 +229,21 @@
 }
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
-void setJSTestInterfaceStr2(ExecState* exec, JSObject* thisObject, JSValue value)
+void setJSTestInterfaceSupplementalStr2(ExecState* exec, JSObject* thisObject, JSValue value)
 {
     JSTestInterface* castedThis = static_cast<JSTestInterface*>(thisObject);
     TestInterface* impl = static_cast<TestInterface*>(castedThis->impl());
-    TestSupplemental::setStr2(impl, ustringToString(value.isEmpty() ? UString() : value.toString(exec)));
+    TestSupplemental::setSupplementalStr2(impl, ustringToString(value.isEmpty() ? UString() : value.toString(exec)));
 }
 
 #endif
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
-void setJSTestInterfaceStr3(ExecState* exec, JSObject* thisObject, JSValue value)
+void setJSTestInterfaceSupplementalStr3(ExecState* exec, JSObject* thisObject, JSValue value)
 {
     JSTestInterface* castedThis = static_cast<JSTestInterface*>(thisObject);
     TestInterface* impl = static_cast<TestInterface*>(castedThis->impl());
-    castedThis->setStr3(impl, exec, value);
+    castedThis->setSupplementalStr3(impl, exec, value);
 }
 
 #endif

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h (104638 => 104639)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h	2012-01-10 23:35:33 UTC (rev 104638)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h	2012-01-10 23:35:38 UTC (rev 104639)
@@ -57,7 +57,7 @@
     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
 
     // Custom attributes
-    JSC::JSValue str3(TestInterface*, JSC::ExecState*) const;
+    JSC::JSValue supplementalStr3(TestInterface*, JSC::ExecState*) const;
     TestInterface* impl() const { return m_impl; }
     void releaseImpl() { m_impl->deref(); m_impl = 0; }
 
@@ -142,11 +142,11 @@
 
 // Attributes
 
-JSC::JSValue jsTestInterfaceStr1(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestInterfaceStr2(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestInterfaceStr2(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestInterfaceStr3(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestInterfaceStr3(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
+JSC::JSValue jsTestInterfaceSupplementalStr1(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
+JSC::JSValue jsTestInterfaceSupplementalStr2(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
+void setJSTestInterfaceSupplementalStr2(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
+JSC::JSValue jsTestInterfaceSupplementalStr3(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
+void setJSTestInterfaceSupplementalStr3(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
 JSC::JSValue jsTestInterfaceConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
 
 } // namespace WebCore

Modified: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h (104638 => 104639)


--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h	2012-01-10 23:35:33 UTC (rev 104638)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h	2012-01-10 23:35:38 UTC (rev 104639)
@@ -32,15 +32,15 @@
 
 @interface DOMTestInterface : DOMObject
 #if ENABLE(Condition11) || ENABLE(Condition12)
-- (NSString *)str1;
+- (NSString *)supplementalStr1;
 #endif
 #if ENABLE(Condition11) || ENABLE(Condition12)
-- (NSString *)str2;
-- (void)setStr2:(NSString *)newStr2;
+- (NSString *)supplementalStr2;
+- (void)setSupplementalStr2:(NSString *)newSupplementalStr2;
 #endif
 #if ENABLE(Condition11) || ENABLE(Condition12)
-- (NSString *)str3;
-- (void)setStr3:(NSString *)newStr3;
+- (NSString *)supplementalStr3;
+- (void)setSupplementalStr3:(NSString *)newSupplementalStr3;
 #endif
 @end
 

Modified: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.mm (104638 => 104639)


--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.mm	2012-01-10 23:35:33 UTC (rev 104638)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.mm	2012-01-10 23:35:38 UTC (rev 104639)
@@ -71,38 +71,38 @@
 }
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
-- (NSString *)str1
+- (NSString *)supplementalStr1
 {
     WebCore::JSMainThreadNullState state;
-    return TestSupplemental::str1(IMPL);
+    return TestSupplemental::supplementalStr1(IMPL);
 }
 #endif
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
-- (NSString *)str2
+- (NSString *)supplementalStr2
 {
     WebCore::JSMainThreadNullState state;
-    return TestSupplemental::str2(IMPL);
+    return TestSupplemental::supplementalStr2(IMPL);
 }
 
-- (void)setStr2:(NSString *)newStr2
+- (void)setSupplementalStr2:(NSString *)newSupplementalStr2
 {
     WebCore::JSMainThreadNullState state;
-    TestSupplemental::setStr2(IMPL, newStr2);
+    TestSupplemental::setSupplementalStr2(IMPL, newSupplementalStr2);
 }
 #endif
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
-- (NSString *)str3
+- (NSString *)supplementalStr3
 {
     WebCore::JSMainThreadNullState state;
-    return TestSupplemental::str3(IMPL);
+    return TestSupplemental::supplementalStr3(IMPL);
 }
 
-- (void)setStr3:(NSString *)newStr3
+- (void)setSupplementalStr3:(NSString *)newSupplementalStr3
 {
     WebCore::JSMainThreadNullState state;
-    TestSupplemental::setStr3(IMPL, newStr3);
+    TestSupplemental::setSupplementalStr3(IMPL, newSupplementalStr3);
 }
 #endif
 

Modified: trunk/Source/WebCore/bindings/scripts/test/TestSupplemental.idl (104638 => 104639)


--- trunk/Source/WebCore/bindings/scripts/test/TestSupplemental.idl	2012-01-10 23:35:33 UTC (rev 104638)
+++ trunk/Source/WebCore/bindings/scripts/test/TestSupplemental.idl	2012-01-10 23:35:38 UTC (rev 104639)
@@ -33,8 +33,8 @@
         Conditional=Condition11|Condition12,
         Supplemental=TestInterface
     ] TestSupplemental {
-        readonly attribute DOMString str1;
-        attribute DOMString str2;
-        attribute [CustomGetter, CustomSetter] DOMString str3;
+        readonly attribute DOMString supplementalStr1;
+        attribute DOMString supplementalStr2;
+        attribute [CustomGetter, CustomSetter] DOMString supplementalStr3;
     };
 }

Modified: trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp (104638 => 104639)


--- trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp	2012-01-10 23:35:33 UTC (rev 104638)
+++ trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp	2012-01-10 23:35:38 UTC (rev 104639)
@@ -45,34 +45,34 @@
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
 
-static v8::Handle<v8::Value> str1AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
+static v8::Handle<v8::Value> supplementalStr1AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
 {
-    INC_STATS("DOM.TestInterface.str1._get");
+    INC_STATS("DOM.TestInterface.supplementalStr1._get");
     TestInterface* imp = V8TestInterface::toNative(info.Holder());
-    return v8String(TestSupplemental::str1(imp));
+    return v8String(TestSupplemental::supplementalStr1(imp));
 }
 
 #endif // ENABLE(Condition11) || ENABLE(Condition12)
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
 
-static v8::Handle<v8::Value> str2AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
+static v8::Handle<v8::Value> supplementalStr2AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
 {
-    INC_STATS("DOM.TestInterface.str2._get");
+    INC_STATS("DOM.TestInterface.supplementalStr2._get");
     TestInterface* imp = V8TestInterface::toNative(info.Holder());
-    return v8String(TestSupplemental::str2(imp));
+    return v8String(TestSupplemental::supplementalStr2(imp));
 }
 
 #endif // ENABLE(Condition11) || ENABLE(Condition12)
 
 #if ENABLE(Condition11) || ENABLE(Condition12)
 
-static void str2AttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
+static void supplementalStr2AttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
 {
-    INC_STATS("DOM.TestInterface.str2._set");
+    INC_STATS("DOM.TestInterface.supplementalStr2._set");
     TestInterface* imp = V8TestInterface::toNative(info.Holder());
     STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(V8Parameter<>, v, value);
-    TestSupplemental::setStr2(imp, v);
+    TestSupplemental::setSupplementalStr2(imp, v);
     return;
 }
 
@@ -82,16 +82,16 @@
 
 static const BatchedAttribute TestInterfaceAttrs[] = {
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    // Attribute 'str1' (Type: 'readonly attribute' ExtAttr: 'Conditional ImplementedBy')
-    {"str1", TestInterfaceInternal::str1AttrGetter, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
+    // Attribute 'supplementalStr1' (Type: 'readonly attribute' ExtAttr: 'Conditional ImplementedBy')
+    {"supplementalStr1", TestInterfaceInternal::supplementalStr1AttrGetter, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
 #endif // ENABLE(Condition11) || ENABLE(Condition12)
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    // Attribute 'str2' (Type: 'attribute' ExtAttr: 'Conditional ImplementedBy')
-    {"str2", TestInterfaceInternal::str2AttrGetter, TestInterfaceInternal::str2AttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
+    // Attribute 'supplementalStr2' (Type: 'attribute' ExtAttr: 'Conditional ImplementedBy')
+    {"supplementalStr2", TestInterfaceInternal::supplementalStr2AttrGetter, TestInterfaceInternal::supplementalStr2AttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
 #endif // ENABLE(Condition11) || ENABLE(Condition12)
 #if ENABLE(Condition11) || ENABLE(Condition12)
-    // Attribute 'str3' (Type: 'attribute' ExtAttr: 'CustomSetter CustomGetter Conditional ImplementedBy')
-    {"str3", V8TestSupplemental::str3AccessorGetter, V8TestSupplemental::str3AccessorSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
+    // Attribute 'supplementalStr3' (Type: 'attribute' ExtAttr: 'CustomSetter CustomGetter Conditional ImplementedBy')
+    {"supplementalStr3", V8TestSupplemental::supplementalStr3AccessorGetter, V8TestSupplemental::supplementalStr3AccessorSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
 #endif // ENABLE(Condition11) || ENABLE(Condition12)
 };
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to