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

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

Issue 2752103003: Make item and namedItem args in MimeTypeArray/PluginArray/Plugin non-optional (Closed)
Patch Set: Codereview update Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/plugins/Plugin.idl
diff --git a/third_party/WebKit/Source/modules/plugins/Plugin.idl b/third_party/WebKit/Source/modules/plugins/Plugin.idl
index f8db9816fe2f1583fd1c1f6090767385c957780a..a325a6bea7765872feb3824f22b64fb7c9555889 100644
--- a/third_party/WebKit/Source/modules/plugins/Plugin.idl
+++ b/third_party/WebKit/Source/modules/plugins/Plugin.idl
@@ -27,7 +27,7 @@
readonly attribute DOMString filename;
readonly attribute DOMString description;
readonly attribute unsigned long length;
- getter MimeType? item([Default=Undefined] optional unsigned long index);
- MimeType? namedItem([Default=Undefined] optional DOMString name);
- [NotEnumerable, ImplementedAs=namedItem] getter MimeType ([Default=Undefined] optional DOMString name);
+ getter MimeType? item(unsigned long index);
+ [NotEnumerable] getter MimeType? namedItem(DOMString name);
foolip 2017/03/21 08:57:52 Adding [NotEnumerable] here should change the enum
lunalu1 2017/03/21 17:56:50 I tried to do it without NotEnumerable, but the ge
foolip 2017/03/22 05:04:52 Ah, I missed the [LegacyUnenumerableNamedPropertie
lunalu1 2017/03/24 15:42:17 "If the [LegacyUnenumerableNamedProperties] extend
foolip 2017/03/30 04:52:21 Not entirely, it seems like [NotEnumerable] also s
lunalu1 2017/03/30 18:32:03 I see. I guess for now we will just keep both the
+ // [NotEnumerable, ImplementedAs=namedItem] getter MimeType ([Default=Undefined] optional DOMString name);
foolip 2017/03/21 08:57:52 Remove this line rather than commenting it out.
};

Powered by Google App Engine
This is Rietveld 408576698