<div dir="ltr"><div class="gmail_quote">On Tue, Oct 14, 2008 at 3:15 PM, Ojan Vafai <span dir="ltr">&lt;<a href="mailto:ojan@chromium.org">ojan@chromium.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<span style="border-collapse:collapse">I&nbsp;currently&nbsp;see&nbsp;nameGetter,&nbsp;namedItem and&nbsp;getNamedItem&nbsp;in&nbsp;a&nbsp;number&nbsp;of&nbsp;different&nbsp;files&nbsp;that&nbsp;all&nbsp;currently&nbsp;have&nbsp;custom&nbsp;bindings&nbsp;that&nbsp;normalize&nbsp;to&nbsp;a&nbsp;nameGetter&nbsp;function.&nbsp;<div>
<br></div><div>Can&nbsp;we&nbsp;just&nbsp;have&nbsp;all&nbsp;the&nbsp;collection&nbsp;types&nbsp;normalize&nbsp;on&nbsp;a&nbsp;single&nbsp;name&nbsp;for&nbsp;this&nbsp;function?&nbsp;It&nbsp;would&nbsp;mean&nbsp;that&nbsp;much&nbsp;of&nbsp;this&nbsp;custom&nbsp;binding&nbsp;could&nbsp;be&nbsp;avoided.&nbsp;</div><div><br></div><div>I&#39;m&nbsp;running&nbsp;into&nbsp;this&nbsp;with&nbsp;Chromium&nbsp;as&nbsp;I&nbsp;am&nbsp;trying&nbsp;to&nbsp;replace&nbsp;our&nbsp;PluginArray&nbsp;and&nbsp;MimeTypeArray&nbsp;with&nbsp;WebKit&#39;s.&nbsp;This&nbsp;is&nbsp;messing&nbsp;with&nbsp;our&nbsp;templates&nbsp;that&nbsp;currently&nbsp;just&nbsp;use namedItem (although&nbsp;could&nbsp;just&nbsp;as&nbsp;easily&nbsp;use&nbsp;nameGetter&nbsp;if&nbsp;that&#39;s&nbsp;preferred).</div>

<div><br></div><div>The big differences with our&nbsp;MimeTypeArray implementation is that it kept a Vector of MimeTypes, returned raw pointers and used namedItem instead of nameGetter. It would be great if we could unify these.</div>

<div></div></span></blockquote><div><br></div><div><span class="Apple-style-span" style="border-collapse: collapse; ">I support this idea. &nbsp;Unification of this concept would indeed be nice.</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">-Sam</span></div></div></div>