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

Side by Side Diff: third_party/WebKit/public/web/WebPlugin.h

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // 76 //
77 // Must return nullptr if the initialize() method returns false. 77 // Must return nullptr if the initialize() method returns false.
78 // Must also return nullptr this plugin is scheduled for deletion. 78 // Must also return nullptr this plugin is scheduled for deletion.
79 // 79 //
80 // Note: This container doesn't necessarily own this plugin. For example, 80 // Note: This container doesn't necessarily own this plugin. For example,
81 // if the container has been assigned a new plugin, then the container will 81 // if the container has been assigned a new plugin, then the container will
82 // own the new plugin, not this old plugin. 82 // own the new plugin, not this old plugin.
83 virtual WebPluginContainer* container() const { return nullptr; } 83 virtual WebPluginContainer* container() const { return nullptr; }
84 virtual void containerDidDetachFromParent() { } 84 virtual void containerDidDetachFromParent() { }
85 85
86 virtual NPObject* scriptableObject() { return nullptr; }
87 virtual struct _NPP* pluginNPP() { return nullptr; }
88
89 // The same as scriptableObject() but allows to expose scriptable interface
90 // through plain v8 object instead of NPObject.
91 // If you override this function, you must return nullptr in scriptableObjec t().
92 virtual v8::Local<v8::Object> v8ScriptableObject(v8::Isolate*) { return v8:: Local<v8::Object>(); } 86 virtual v8::Local<v8::Object> v8ScriptableObject(v8::Isolate*) { return v8:: Local<v8::Object>(); }
93 87
94 // Returns true if the form submission value is successfully obtained 88 // Returns true if the form submission value is successfully obtained
95 // from the plugin. The value would be associated with the name attribute 89 // from the plugin. The value would be associated with the name attribute
96 // of the corresponding object element. 90 // of the corresponding object element.
97 virtual bool getFormValue(WebString&) { return false; } 91 virtual bool getFormValue(WebString&) { return false; }
98 virtual bool supportsKeyboardFocus() const { return false; } 92 virtual bool supportsKeyboardFocus() const { return false; }
99 virtual bool supportsEditCommands() const { return false; } 93 virtual bool supportsEditCommands() const { return false; }
100 // Returns true if this plugin supports input method, which implements 94 // Returns true if this plugin supports input method, which implements
101 // setComposition() and confirmComposition() below. 95 // setComposition() and confirmComposition() below.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 182
189 virtual bool isPlaceholder() { return true; } 183 virtual bool isPlaceholder() { return true; }
190 184
191 protected: 185 protected:
192 ~WebPlugin() { } 186 ~WebPlugin() { }
193 }; 187 };
194 188
195 } // namespace blink 189 } // namespace blink
196 190
197 #endif 191 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebFrame.h ('k') | third_party/WebKit/public/web/WebPluginContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698