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

Side by Side Diff: Source/core/dom/DOMImplementation.cpp

Issue 1005223002: Blink: Replace all "plug-in" with "plugin". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert netscape-dom-access tests. Created 5 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
« no previous file with comments | « Source/bindings/core/v8/V8Binding.cpp ('k') | Source/core/frame/Settings.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) 6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org)
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 if ((type == "application/pdf" || type == "text/pdf") && pluginData && plugi nData->supportsMimeType(type)) 348 if ((type == "application/pdf" || type == "text/pdf") && pluginData && plugi nData->supportsMimeType(type))
349 return PluginDocument::create(init); 349 return PluginDocument::create(init);
350 if (Image::supportsType(type)) 350 if (Image::supportsType(type))
351 return ImageDocument::create(init); 351 return ImageDocument::create(init);
352 352
353 // Check to see if the type can be played by our media player, if so create a MediaDocument 353 // Check to see if the type can be played by our media player, if so create a MediaDocument
354 if (HTMLMediaElement::supportsType(ContentType(type))) 354 if (HTMLMediaElement::supportsType(ContentType(type)))
355 return MediaDocument::create(init); 355 return MediaDocument::create(init);
356 356
357 // Everything else except text/plain can be overridden by plugins. In partic ular, Adobe SVG Viewer should be used for SVG, if installed. 357 // Everything else except text/plain can be overridden by plugins. In partic ular, Adobe SVG Viewer should be used for SVG, if installed.
358 // Disallowing plug-ins to use text/plain prevents plug-ins from hijacking a fundamental type that the browser is expected to handle, 358 // Disallowing plugins to use text/plain prevents plugins from hijacking a f undamental type that the browser is expected to handle,
359 // and also serves as an optimization to prevent loading the plug-in databas e in the common case. 359 // and also serves as an optimization to prevent loading the plugin database in the common case.
360 if (type != "text/plain" && pluginData && pluginData->supportsMimeType(type) ) 360 if (type != "text/plain" && pluginData && pluginData->supportsMimeType(type) )
361 return PluginDocument::create(init); 361 return PluginDocument::create(init);
362 if (isTextMIMEType(type)) 362 if (isTextMIMEType(type))
363 return TextDocument::create(init); 363 return TextDocument::create(init);
364 if (type == "image/svg+xml") 364 if (type == "image/svg+xml")
365 return XMLDocument::createSVG(init); 365 return XMLDocument::createSVG(init);
366 if (isXMLMIMEType(type)) 366 if (isXMLMIMEType(type))
367 return XMLDocument::create(init); 367 return XMLDocument::create(init);
368 368
369 return HTMLDocument::create(init); 369 return HTMLDocument::create(init);
370 } 370 }
371 371
372 DEFINE_TRACE(DOMImplementation) 372 DEFINE_TRACE(DOMImplementation)
373 { 373 {
374 visitor->trace(m_document); 374 visitor->trace(m_document);
375 } 375 }
376 376
377 } 377 }
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8Binding.cpp ('k') | Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698