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

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

Issue 138833005: Replace RenderFullScreen with top layer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: protect only for top layer changes Created 6 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 | Annotate | Revision Log
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 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserv ed.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 protected: 59 protected:
60 HTMLPlugInElement(const QualifiedName& tagName, Document&, bool createdByPar ser, PreferPlugInsForImagesOption); 60 HTMLPlugInElement(const QualifiedName& tagName, Document&, bool createdByPar ser, PreferPlugInsForImagesOption);
61 61
62 // Node functions: 62 // Node functions:
63 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; 63 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;
64 virtual bool dispatchBeforeLoadEvent(const String& sourceURL) OVERRIDE FINAL ; 64 virtual bool dispatchBeforeLoadEvent(const String& sourceURL) OVERRIDE FINAL ;
65 65
66 // Element functions: 66 // Element functions:
67 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 67 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
68 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 68 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
69 virtual void setIsInTopLayer(bool) OVERRIDE;
69 70
70 virtual bool useFallbackContent() const; 71 virtual bool useFallbackContent() const;
71 // Create or update the RenderWidget and return it, triggering layout if 72 // Create or update the RenderWidget and return it, triggering layout if
72 // necessary. 73 // necessary.
73 virtual RenderWidget* renderWidgetForJSBindings() const; 74 virtual RenderWidget* renderWidgetForJSBindings() const;
74 75
75 bool isImageType(); 76 bool isImageType();
76 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI mages; } 77 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI mages; }
77 RenderEmbeddedObject* renderEmbeddedObject() const; 78 RenderEmbeddedObject* renderEmbeddedObject() const;
78 bool allowedToLoadFrameURL(const String& url); 79 bool allowedToLoadFrameURL(const String& url);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool pluginIsLoadable(const KURL&, const String& mimeType); 127 bool pluginIsLoadable(const KURL&, const String& mimeType);
127 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType) ; 128 bool wouldLoadAsNetscapePlugin(const String& url, const String& serviceType) ;
128 129
129 mutable RefPtr<SharedPersistent<v8::Object> > m_pluginWrapper; 130 mutable RefPtr<SharedPersistent<v8::Object> > m_pluginWrapper;
130 NPObject* m_NPObject; 131 NPObject* m_NPObject;
131 bool m_isCapturingMouseEvents; 132 bool m_isCapturingMouseEvents;
132 bool m_inBeforeLoadEventHandler; 133 bool m_inBeforeLoadEventHandler;
133 bool m_needsWidgetUpdate; 134 bool m_needsWidgetUpdate;
134 bool m_shouldPreferPlugInsForImages; 135 bool m_shouldPreferPlugInsForImages;
135 DisplayState m_displayState; 136 DisplayState m_displayState;
137 RefPtr<Widget> m_protectWidgetDuringReattach;
136 }; 138 };
137 139
138 DEFINE_NODE_TYPE_CASTS(HTMLPlugInElement, isPluginElement()); 140 DEFINE_NODE_TYPE_CASTS(HTMLPlugInElement, isPluginElement());
139 141
140 } // namespace WebCore 142 } // namespace WebCore
141 143
142 #endif // HTMLPlugInElement_h 144 #endif // HTMLPlugInElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698