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

Side by Side Diff: Source/core/html/HTMLPlugInImageElement.h

Issue 38453002: Move members of HTMLPlugInImageElement to HTMLPlugInElement, part 4. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/core/html/HTMLPlugInImageElement.cpp » ('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) 2008, 2009, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011, 2012 Apple Inc. All rights reserved.
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 Library General Public 5 * modify it under the terms of the GNU Library 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 23 matching lines...) Expand all
34 class Widget; 34 class Widget;
35 35
36 // Base class for HTMLObjectElement and HTMLEmbedElement 36 // Base class for HTMLObjectElement and HTMLEmbedElement
37 class HTMLPlugInImageElement : public HTMLPlugInElement { 37 class HTMLPlugInImageElement : public HTMLPlugInElement {
38 public: 38 public:
39 virtual ~HTMLPlugInImageElement(); 39 virtual ~HTMLPlugInImageElement();
40 40
41 protected: 41 protected:
42 HTMLPlugInImageElement(const QualifiedName& tagName, Document&, bool created ByParser, PreferPlugInsForImagesOption); 42 HTMLPlugInImageElement(const QualifiedName& tagName, Document&, bool created ByParser, PreferPlugInsForImagesOption);
43 43
44 bool allowedToLoadFrameURL(const String& url);
45 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType) ;
46
47 bool requestObject(const String& url, const String& mimeType, const Vector<S tring>& paramNames, const Vector<String>& paramValues); 44 bool requestObject(const String& url, const String& mimeType, const Vector<S tring>& paramNames, const Vector<String>& paramValues);
48 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback, bool& useFallback); 45 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback, bool& useFallback);
49 46
50 private: 47 private:
51 virtual RenderObject* createRenderer(RenderStyle*);
52 virtual void willRecalcStyle(StyleRecalcChange) OVERRIDE FINAL;
53
54 virtual void finishParsingChildren();
55
56 void swapRendererTimerFired(Timer<HTMLPlugInImageElement>*);
57
58 void restartSimilarPlugIns();
59
60 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p aramNames, const Vector<String>& paramValues, bool useFallback); 48 bool loadPlugin(const KURL&, const String& mimeType, const Vector<String>& p aramNames, const Vector<String>& paramValues, bool useFallback);
61 bool pluginIsLoadable(const KURL&, const String& mimeType); 49 bool pluginIsLoadable(const KURL&, const String& mimeType);
62 50
63 virtual bool isPlugInImageElement() const OVERRIDE { return true; } 51 virtual bool isPlugInImageElement() const OVERRIDE { return true; }
64 52
65 bool m_createdDuringUserGesture; 53 bool m_createdDuringUserGesture;
66 }; 54 };
67 55
68 inline HTMLPlugInImageElement* toHTMLPlugInImageElement(Node* node) 56 inline HTMLPlugInImageElement* toHTMLPlugInImageElement(Node* node)
69 { 57 {
(...skipping 10 matching lines...) Expand all
80 ASSERT_WITH_SECURITY_IMPLICATION(plugInElement->isPlugInImageElement()); 68 ASSERT_WITH_SECURITY_IMPLICATION(plugInElement->isPlugInImageElement());
81 return static_cast<const HTMLPlugInImageElement*>(plugInElement); 69 return static_cast<const HTMLPlugInImageElement*>(plugInElement);
82 } 70 }
83 71
84 // This will catch anyone doing an unnecessary cast. 72 // This will catch anyone doing an unnecessary cast.
85 void toHTMLPlugInImageElement(const HTMLPlugInImageElement*); 73 void toHTMLPlugInImageElement(const HTMLPlugInImageElement*);
86 74
87 } // namespace WebCore 75 } // namespace WebCore
88 76
89 #endif // HTMLPlugInImageElement_h 77 #endif // HTMLPlugInImageElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/core/html/HTMLPlugInImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698