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

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

Issue 809523003: Send NPAPI focus messages when web contents is blurred or focused (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: setFocus call update 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
« no previous file with comments | « no previous file | 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Returns the existing plugin widget, if there is one. 56 // Returns the existing plugin widget, if there is one.
57 Widget* existingPluginWidget() const; 57 Widget* existingPluginWidget() const;
58 58
59 // Returns the plugin widget, forcing layout and post-layout tasks 59 // Returns the plugin widget, forcing layout and post-layout tasks
60 // to happen synchronously (e.g. for JS bindings). 60 // to happen synchronously (e.g. for JS bindings).
61 // See also renderPartForJSBindings(). 61 // See also renderPartForJSBindings().
62 Widget* pluginWidgetForJSBindings(); 62 Widget* pluginWidgetForJSBindings();
63 63
64 SharedPersistent<v8::Object>* pluginWrapper(); 64 SharedPersistent<v8::Object>* pluginWrapper();
65 NPObject* getNPObject(); 65 NPObject* getNPObject();
66 void setPluginFocus(bool focused);
66 bool canProcessDrag() const; 67 bool canProcessDrag() const;
67 const String& url() const { return m_url; } 68 const String& url() const { return m_url; }
68 69
69 // Public for FrameView::addPartToUpdate() 70 // Public for FrameView::addPartToUpdate()
70 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } 71 bool needsWidgetUpdate() const { return m_needsWidgetUpdate; }
71 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne edsWidgetUpdate; } 72 void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = ne edsWidgetUpdate; }
72 void updateWidget(); 73 void updateWidget();
73 74
74 bool shouldAccelerate() const; 75 bool shouldAccelerate() const;
75 76
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 inline bool isHTMLPlugInElement(const HTMLElement& element) 167 inline bool isHTMLPlugInElement(const HTMLElement& element)
167 { 168 {
168 return element.isPluginElement(); 169 return element.isPluginElement();
169 } 170 }
170 171
171 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); 172 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement);
172 173
173 } // namespace blink 174 } // namespace blink
174 175
175 #endif // HTMLPlugInElement_h 176 #endif // HTMLPlugInElement_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698