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

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

Issue 732783002: Reland HTMLPlugInElement: Use custom focus logic only when there is a plugin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month 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/HTMLObjectElement.cpp ('k') | Source/core/html/HTMLPlugInElement.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) 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class HTMLPlugInElement : public HTMLFrameOwnerElement { 45 class HTMLPlugInElement : public HTMLFrameOwnerElement {
46 public: 46 public:
47 virtual ~HTMLPlugInElement(); 47 virtual ~HTMLPlugInElement();
48 virtual void trace(Visitor*) override; 48 virtual void trace(Visitor*) override;
49 #if ENABLE(OILPAN) 49 #if ENABLE(OILPAN)
50 virtual void disconnectContentFrame() override; 50 virtual void disconnectContentFrame() override;
51 void shouldDisposePlugin(); 51 void shouldDisposePlugin();
52 #endif 52 #endif
53 53
54 void resetInstance(); 54 void resetInstance();
55
56 // Returns the existing plugin widget, if there is one.
57 Widget* existingPluginWidget() const;
58
59 // Returns the plugin widget, forcing layout and post-layout tasks
60 // to happen synchronously (e.g. for JS bindings).
61 // See also renderPartForJSBindings().
62 Widget* pluginWidgetForJSBindings();
63
55 SharedPersistent<v8::Object>* pluginWrapper(); 64 SharedPersistent<v8::Object>* pluginWrapper();
56 Widget* pluginWidget() const;
57 NPObject* getNPObject(); 65 NPObject* getNPObject();
58 bool canProcessDrag() const; 66 bool canProcessDrag() const;
59 const String& url() const { return m_url; } 67 const String& url() const { return m_url; }
60 68
61 // Public for FrameView::addPartToUpdate() 69 // Public for FrameView::addPartToUpdate()
62 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } 70 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; }
63 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne edsWidgetUpdate; } 71 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne edsWidgetUpdate; }
64 void updateWidget(); 72 void updateWidget();
65 73
66 bool shouldAccelerate() const; 74 bool shouldAccelerate() const;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 inline bool isHTMLPlugInElement(const HTMLElement& element) 166 inline bool isHTMLPlugInElement(const HTMLElement& element)
159 { 167 {
160 return element.isPluginElement(); 168 return element.isPluginElement();
161 } 169 }
162 170
163 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); 171 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement);
164 172
165 } // namespace blink 173 } // namespace blink
166 174
167 #endif // HTMLPlugInElement_h 175 #endif // HTMLPlugInElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLObjectElement.cpp ('k') | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698