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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
3 Copyright (C) 2008 Apple Inc. All rights reserved. 3 Copyright (C) 2008 Apple Inc. All rights reserved.
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., 51 Franklin Street, Fifth Floor, 17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA. 18 Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 // https://html.spec.whatwg.org/multipage/webappapis.html#plugins-2 21 // https://html.spec.whatwg.org/multipage/webappapis.html#plugins-2
22 22
23 [ 23 [
24 ImplementedAs=DOMPlugin 24 ImplementedAs=DOMPlugin
25 ] interface Plugin { 25 ] interface Plugin {
26 readonly attribute DOMString name; 26 readonly attribute DOMString name;
27 readonly attribute DOMString filename; 27 readonly attribute DOMString filename;
28 readonly attribute DOMString description; 28 readonly attribute DOMString description;
29 readonly attribute unsigned long length; 29 readonly attribute unsigned long length;
30 getter MimeType? item([Default=Undefined] optional unsigned long index); 30 getter MimeType? item(unsigned long index);
31 MimeType? namedItem([Default=Undefined] optional DOMString name); 31 [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
32 [NotEnumerable, ImplementedAs=namedItem] getter MimeType ([Default=Undefined ] optional DOMString name); 32 // [NotEnumerable, ImplementedAs=namedItem] getter MimeType ([Default=Undefi ned] optional DOMString name);
foolip 2017/03/21 08:57:52 Remove this line rather than commenting it out.
33 }; 33 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698