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

Unified Diff: third_party/WebKit/Source/modules/plugins/PluginArray.idl

Issue 2575893002: Make item getter and nameditem getter return nullable in Plugin and PluginArray (Closed)
Patch Set: Added links to the spec Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/modules/plugins/Plugin.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/plugins/PluginArray.idl
diff --git a/third_party/WebKit/Source/modules/plugins/PluginArray.idl b/third_party/WebKit/Source/modules/plugins/PluginArray.idl
index e107399b767fa2bb5125dd943e3d1d024315d5c2..5bcbbcfad0306f9ed29a37c77d44be5e6c5d1413 100644
--- a/third_party/WebKit/Source/modules/plugins/PluginArray.idl
+++ b/third_party/WebKit/Source/modules/plugins/PluginArray.idl
@@ -18,12 +18,14 @@
Boston, MA 02110-1301, USA.
*/
+// https://html.spec.whatwg.org/multipage/webappapis.html#plugins-2
+
[
ImplementedAs=DOMPluginArray
] interface PluginArray {
readonly attribute unsigned long length;
- getter Plugin item([Default=Undefined] optional unsigned long index);
- Plugin namedItem([Default=Undefined] optional DOMString name);
+ getter Plugin? item([Default=Undefined] optional unsigned long index);
+ Plugin? namedItem([Default=Undefined] optional DOMString name);
[NotEnumerable, ImplementedAs=namedItem] getter Plugin ([Default=Undefined] optional DOMString name);
foolip 2016/12/14 19:19:44 Oops, both there and in the other file we missed t
void refresh([Default=Undefined] optional boolean reload);
};
« no previous file with comments | « third_party/WebKit/Source/modules/plugins/Plugin.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698