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

Side by Side Diff: Source/bindings/tests/results/V8TestObj.cpp

Issue 14301003: Rename FeatureObserver to UseCounter to make clear that all it stores are usage counts. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Now with 20% more awesome Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 This file is part of the WebKit open source project. 2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! 3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details. 13 Library General Public License for more details.
14 14
15 You should have received a copy of the GNU Library General Public License 15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to 16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19 */ 19 */
20 20
21 #include "config.h" 21 #include "config.h"
22 #include "V8TestObj.h" 22 #include "V8TestObj.h"
23 23
24 #include "BindingState.h" 24 #include "BindingState.h"
25 #include "ContextFeatures.h" 25 #include "ContextFeatures.h"
26 #include "DOMStringList.h" 26 #include "DOMStringList.h"
27 #include "Dictionary.h" 27 #include "Dictionary.h"
28 #include "ExceptionCode.h" 28 #include "ExceptionCode.h"
29 #include "FeatureObserver.h" 29 #include "UseCounter.h"
30 #include "Frame.h" 30 #include "Frame.h"
31 #include "HTMLNames.h" 31 #include "HTMLNames.h"
32 #include "RuntimeEnabledFeatures.h" 32 #include "RuntimeEnabledFeatures.h"
33 #include "SVGPropertyTearOff.h" 33 #include "SVGPropertyTearOff.h"
34 #include "SVGStaticPropertyTearOff.h" 34 #include "SVGStaticPropertyTearOff.h"
35 #include "ScriptArguments.h" 35 #include "ScriptArguments.h"
36 #include "ScriptCallStackFactory.h" 36 #include "ScriptCallStackFactory.h"
37 #include "ScriptProfile.h" 37 #include "ScriptProfile.h"
38 #include "ScriptValue.h" 38 #include "ScriptValue.h"
39 #include "SerializedScriptValue.h" 39 #include "SerializedScriptValue.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 } 357 }
358 358
359 static v8::Handle<v8::Value> testObjAttrAttrGetter(v8::Local<v8::String> name, c onst v8::AccessorInfo& info) 359 static v8::Handle<v8::Value> testObjAttrAttrGetter(v8::Local<v8::String> name, c onst v8::AccessorInfo& info)
360 { 360 {
361 TestObj* imp = V8TestObj::toNative(info.Holder()); 361 TestObj* imp = V8TestObj::toNative(info.Holder());
362 return toV8Fast(imp->testObjAttr(), info, imp); 362 return toV8Fast(imp->testObjAttr(), info, imp);
363 } 363 }
364 364
365 static v8::Handle<v8::Value> testObjAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::AccessorInfo& info) 365 static v8::Handle<v8::Value> testObjAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::AccessorInfo& info)
366 { 366 {
367 FeatureObserver::observe(activeDOMWindow(BindingState::instance()), FeatureO bserver::TestFeature); 367 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::T estFeature);
368 return TestObjV8Internal::testObjAttrAttrGetter(name, info); 368 return TestObjV8Internal::testObjAttrAttrGetter(name, info);
369 } 369 }
370 370
371 static void testObjAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Valu e> value, const v8::AccessorInfo& info) 371 static void testObjAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Valu e> value, const v8::AccessorInfo& info)
372 { 372 {
373 TestObj* imp = V8TestObj::toNative(info.Holder()); 373 TestObj* imp = V8TestObj::toNative(info.Holder());
374 V8TRYCATCH_VOID(TestObj*, v, V8TestObj::HasInstance(value, info.GetIsolate() , worldType(info.GetIsolate())) ? V8TestObj::toNative(v8::Handle<v8::Object>::Ca st(value)) : 0); 374 V8TRYCATCH_VOID(TestObj*, v, V8TestObj::HasInstance(value, info.GetIsolate() , worldType(info.GetIsolate())) ? V8TestObj::toNative(v8::Handle<v8::Object>::Ca st(value)) : 0);
375 imp->setTestObjAttr(WTF::getPtr(v)); 375 imp->setTestObjAttr(WTF::getPtr(v));
376 return; 376 return;
377 } 377 }
378 378
379 static void testObjAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local< v8::Value> value, const v8::AccessorInfo& info) 379 static void testObjAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local< v8::Value> value, const v8::AccessorInfo& info)
380 { 380 {
381 FeatureObserver::observe(activeDOMWindow(BindingState::instance()), FeatureO bserver::TestFeature); 381 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::T estFeature);
382 TestObjV8Internal::testObjAttrAttrSetter(name, value, info); 382 TestObjV8Internal::testObjAttrAttrSetter(name, value, info);
383 } 383 }
384 384
385 static v8::Handle<v8::Value> XMLObjAttrAttrGetter(v8::Local<v8::String> name, co nst v8::AccessorInfo& info) 385 static v8::Handle<v8::Value> XMLObjAttrAttrGetter(v8::Local<v8::String> name, co nst v8::AccessorInfo& info)
386 { 386 {
387 TestObj* imp = V8TestObj::toNative(info.Holder()); 387 TestObj* imp = V8TestObj::toNative(info.Holder());
388 return toV8Fast(imp->xmlObjAttr(), info, imp); 388 return toV8Fast(imp->xmlObjAttr(), info, imp);
389 } 389 }
390 390
391 static v8::Handle<v8::Value> XMLObjAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::AccessorInfo& info) 391 static v8::Handle<v8::Value> XMLObjAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::AccessorInfo& info)
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
1910 } 1910 }
1911 1911
1912 static v8::Handle<v8::Value> objMethodMethod(const v8::Arguments& args) 1912 static v8::Handle<v8::Value> objMethodMethod(const v8::Arguments& args)
1913 { 1913 {
1914 TestObj* imp = V8TestObj::toNative(args.Holder()); 1914 TestObj* imp = V8TestObj::toNative(args.Holder());
1915 return toV8(imp->objMethod(), args.Holder(), args.GetIsolate()); 1915 return toV8(imp->objMethod(), args.Holder(), args.GetIsolate());
1916 } 1916 }
1917 1917
1918 static v8::Handle<v8::Value> objMethodMethodCallback(const v8::Arguments& args) 1918 static v8::Handle<v8::Value> objMethodMethodCallback(const v8::Arguments& args)
1919 { 1919 {
1920 FeatureObserver::observe(activeDOMWindow(BindingState::instance()), FeatureO bserver::TestFeature); 1920 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::T estFeature);
1921 return TestObjV8Internal::objMethodMethod(args); 1921 return TestObjV8Internal::objMethodMethod(args);
1922 } 1922 }
1923 1923
1924 static v8::Handle<v8::Value> objMethodWithArgsMethod(const v8::Arguments& args) 1924 static v8::Handle<v8::Value> objMethodWithArgsMethod(const v8::Arguments& args)
1925 { 1925 {
1926 if (args.Length() < 3) 1926 if (args.Length() < 3)
1927 return throwNotEnoughArgumentsError(args.GetIsolate()); 1927 return throwNotEnoughArgumentsError(args.GetIsolate());
1928 TestObj* imp = V8TestObj::toNative(args.Holder()); 1928 TestObj* imp = V8TestObj::toNative(args.Holder());
1929 V8TRYCATCH(int, longArg, toInt32(args[0])); 1929 V8TRYCATCH(int, longArg, toInt32(args[0]));
1930 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, strArg, args[1]); 1930 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, strArg, args[1]);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
2059 return setDOMException(ec, args.GetIsolate()); 2059 return setDOMException(ec, args.GetIsolate());
2060 } 2060 }
2061 2061
2062 static v8::Handle<v8::Value> methodWithExceptionMethodCallback(const v8::Argumen ts& args) 2062 static v8::Handle<v8::Value> methodWithExceptionMethodCallback(const v8::Argumen ts& args)
2063 { 2063 {
2064 return TestObjV8Internal::methodWithExceptionMethod(args); 2064 return TestObjV8Internal::methodWithExceptionMethod(args);
2065 } 2065 }
2066 2066
2067 static v8::Handle<v8::Value> customMethodMethodCallback(const v8::Arguments& arg s) 2067 static v8::Handle<v8::Value> customMethodMethodCallback(const v8::Arguments& arg s)
2068 { 2068 {
2069 FeatureObserver::observe(activeDOMWindow(BindingState::instance()), FeatureO bserver::CustomTestFeature); 2069 UseCounter::observe(activeDOMWindow(BindingState::instance()), UseCounter::C ustomTestFeature);
2070 return V8TestObj::customMethodMethodCustom(args); 2070 return V8TestObj::customMethodMethodCustom(args);
2071 } 2071 }
2072 2072
2073 static v8::Handle<v8::Value> customMethodWithArgsMethodCallback(const v8::Argume nts& args) 2073 static v8::Handle<v8::Value> customMethodWithArgsMethodCallback(const v8::Argume nts& args)
2074 { 2074 {
2075 return V8TestObj::customMethodWithArgsMethodCustom(args); 2075 return V8TestObj::customMethodWithArgsMethodCustom(args);
2076 } 2076 }
2077 2077
2078 static v8::Handle<v8::Value> addEventListenerMethod(const v8::Arguments& args) 2078 static v8::Handle<v8::Value> addEventListenerMethod(const v8::Arguments& args)
2079 { 2079 {
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after
3760 installPerContextProperties(wrapper, impl.get(), isolate); 3760 installPerContextProperties(wrapper, impl.get(), isolate);
3761 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); 3761 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent);
3762 return wrapper; 3762 return wrapper;
3763 } 3763 }
3764 void V8TestObj::derefObject(void* object) 3764 void V8TestObj::derefObject(void* object)
3765 { 3765 {
3766 static_cast<TestObj*>(object)->deref(); 3766 static_cast<TestObj*>(object)->deref();
3767 } 3767 }
3768 3768
3769 } // namespace WebCore 3769 } // namespace WebCore
OLDNEW
« Source/WebCore/page/UseCounter.h ('K') | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698