diff options
author | koz@chromium.org <koz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-03 06:55:14 +0000 |
---|---|---|
committer | koz@chromium.org <koz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-03 06:55:14 +0000 |
commit | 5eda962962d8b405733cd9a5184b367070096dea (patch) | |
tree | 76cc3b970a04b7630956a4bab2bf342082b54e1b /content/renderer/pepper/pepper_plugin_instance_impl.h | |
parent | c02f1bab5a382072c5488762038435a80dc10e67 (diff) | |
download | chromium_src-5eda962962d8b405733cd9a5184b367070096dea.zip chromium_src-5eda962962d8b405733cd9a5184b367070096dea.tar.gz chromium_src-5eda962962d8b405733cd9a5184b367070096dea.tar.bz2 |
Have the PDF plugin eagerly notify the host of the link under the cursor.
We do this so the host can synchronously query the link under
the cursor for the out of process PDF plugin.
Review URL: https://codereview.chromium.org/135853009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248443 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/pepper/pepper_plugin_instance_impl.h')
-rw-r--r-- | content/renderer/pepper/pepper_plugin_instance_impl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.h b/content/renderer/pepper/pepper_plugin_instance_impl.h index 1817e4b..02861bd 100644 --- a/content/renderer/pepper/pepper_plugin_instance_impl.h +++ b/content/renderer/pepper/pepper_plugin_instance_impl.h @@ -373,6 +373,7 @@ class CONTENT_EXPORT PepperPluginInstanceImpl const base::FilePath& path) OVERRIDE; virtual void SetEmbedProperty(PP_Var key, PP_Var value) OVERRIDE; virtual void SetSelectedText(const base::string16& selected_text) OVERRIDE; + virtual void SetLinkUnderCursor(const std::string& url) OVERRIDE; // PPB_Instance_API implementation. virtual PP_Bool BindGraphics(PP_Instance instance, @@ -853,6 +854,9 @@ class CONTENT_EXPORT PepperPluginInstanceImpl // calls and handles PPB_ContentDecryptor_Private calls. scoped_ptr<ContentDecryptorDelegate> content_decryptor_delegate_; + // The link currently under the cursor. + base::string16 link_under_cursor_; + // Dummy NPP value used when calling in to WebBindings, to allow the bindings // to correctly track NPObjects belonging to this plugin instance. scoped_ptr<struct _NPP> npp_; |