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

Side by Side Diff: Source/core/plugins/DOMPlugin.cpp

Issue 928103002: Remove some unused functions in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try Created 5 years, 10 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 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public 5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const MimeClassInfo& mime = pluginInfo().mimes[index]; 68 const MimeClassInfo& mime = pluginInfo().mimes[index];
69 69
70 const Vector<MimeClassInfo>& mimes = m_pluginData->mimes(); 70 const Vector<MimeClassInfo>& mimes = m_pluginData->mimes();
71 for (unsigned i = 0; i < mimes.size(); ++i) { 71 for (unsigned i = 0; i < mimes.size(); ++i) {
72 if (mimes[i] == mime && m_pluginData->mimePluginIndices()[i] == m_index) 72 if (mimes[i] == mime && m_pluginData->mimePluginIndices()[i] == m_index)
73 return DOMMimeType::create(m_pluginData.get(), m_frame, i).get(); 73 return DOMMimeType::create(m_pluginData.get(), m_frame, i).get();
74 } 74 }
75 return nullptr; 75 return nullptr;
76 } 76 }
77 77
78 bool DOMPlugin::canGetItemsForName(const AtomicString& propertyName)
79 {
80 const Vector<MimeClassInfo>& mimes = m_pluginData->mimes();
81 for (unsigned i = 0; i < mimes.size(); ++i)
82 if (mimes[i].type == propertyName)
83 return true;
84 return false;
85 }
86
87 PassRefPtrWillBeRawPtr<DOMMimeType> DOMPlugin::namedItem(const AtomicString& pro pertyName) 78 PassRefPtrWillBeRawPtr<DOMMimeType> DOMPlugin::namedItem(const AtomicString& pro pertyName)
88 { 79 {
89 const Vector<MimeClassInfo>& mimes = m_pluginData->mimes(); 80 const Vector<MimeClassInfo>& mimes = m_pluginData->mimes();
90 for (unsigned i = 0; i < mimes.size(); ++i) 81 for (unsigned i = 0; i < mimes.size(); ++i)
91 if (mimes[i].type == propertyName) 82 if (mimes[i].type == propertyName)
92 return DOMMimeType::create(m_pluginData.get(), m_frame, i).get(); 83 return DOMMimeType::create(m_pluginData.get(), m_frame, i).get();
93 return nullptr; 84 return nullptr;
94 } 85 }
95 86
96 } // namespace blink 87 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698