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

Side by Side Diff: Source/bindings/tests/idls/core/TestObject.idl

Issue 968573004: [bindings] Support extended attribute '[CallWith=ScriptState ]' for getter/setter/deleter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@972153002
Patch Set: Patch for landing. Created 5 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 Promise promiseOverloadMethod(Window arg1, double arg2); 469 Promise promiseOverloadMethod(Window arg1, double arg2);
470 Promise promiseOverloadMethod(Document arg1, double arg2); 470 Promise promiseOverloadMethod(Document arg1, double arg2);
471 471
472 [PerWorldBindings] void overloadedPerWorldBindingsMethod(); 472 [PerWorldBindings] void overloadedPerWorldBindingsMethod();
473 [PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg); 473 [PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg);
474 474
475 static void overloadedStaticMethod(long longArg); 475 static void overloadedStaticMethod(long longArg);
476 static void overloadedStaticMethod(long longArg1, long longArg2); 476 static void overloadedStaticMethod(long longArg1, long longArg2);
477 477
478 // Special operations 478 // Special operations
479 getter any item(unsigned long index); 479 [CallWith=ScriptState] getter any item(unsigned long index);
480 getter object(DOMString name); 480 [CallWith=ScriptState] getter object(DOMString name);
481 [CallWith=ScriptState] setter DOMString setItem(unsigned long index, DOMStri ng value);
482 [CallWith=ScriptState] setter DOMString(DOMString name, DOMString value);
483 [RaisesException, CallWith=ScriptState] deleter boolean(unsigned long index) ;
484 [CallWith=ScriptState] deleter boolean(DOMString name);
481 485
482 // Extended attributes for arguments 486 // Extended attributes for arguments
483 // [Clamp] 487 // [Clamp]
484 void voidMethodClampUnsignedShortArg([Clamp] unsigned short clampUnsignedSho rtArg); 488 void voidMethodClampUnsignedShortArg([Clamp] unsigned short clampUnsignedSho rtArg);
485 void voidMethodClampUnsignedLongArg([Clamp] unsigned long clampUnsignedLongA rg); 489 void voidMethodClampUnsignedLongArg([Clamp] unsigned long clampUnsignedLongA rg);
486 // [Default] 490 // [Default]
487 void voidMethodDefaultUndefinedTestInterfaceEmptyArg([Default=Undefined] opt ional TestInterfaceEmpty defaultUndefinedTestInterfaceEmptyArg); 491 void voidMethodDefaultUndefinedTestInterfaceEmptyArg([Default=Undefined] opt ional TestInterfaceEmpty defaultUndefinedTestInterfaceEmptyArg);
488 void voidMethodDefaultUndefinedLongArg([Default=Undefined] optional long def aultUndefinedLongArg); 492 void voidMethodDefaultUndefinedLongArg([Default=Undefined] optional long def aultUndefinedLongArg);
489 void voidMethodDefaultUndefinedStringArg([Default=Undefined] optional DOMStr ing defaultUndefinedStringArg); 493 void voidMethodDefaultUndefinedStringArg([Default=Undefined] optional DOMStr ing defaultUndefinedStringArg);
490 // [EnforceRange] 494 // [EnforceRange]
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 591 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
588 [ImplementedInPrivateScript] attribute Node nodeAttribute; 592 [ImplementedInPrivateScript] attribute Node nodeAttribute;
589 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2); 593 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2);
590 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly; 594 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly;
591 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2); 595 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2);
592 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly; 596 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly;
593 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; 597 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript;
594 598
595 maplike<long, DOMStringOrDouble>; 599 maplike<long, DOMStringOrDouble>;
596 }; 600 };
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/tests/results/core/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698