summaryrefslogtreecommitdiffstats
path: root/content/common/np_channel_base.h
diff options
context:
space:
mode:
authorsteveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-22 00:31:08 +0000
committersteveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-22 00:31:08 +0000
commit959a694093db706173cccfec4c1e14717ce370e1 (patch)
treee891eff65f9bbddbf3fa223d96ed3b6533b15f8c /content/common/np_channel_base.h
parentec8734c639ff92f98c614e79a9ebfb7ceaa7e113 (diff)
downloadchromium_src-959a694093db706173cccfec4c1e14717ce370e1.zip
chromium_src-959a694093db706173cccfec4c1e14717ce370e1.tar.gz
chromium_src-959a694093db706173cccfec4c1e14717ce370e1.tar.bz2
Add NPChannelBase::GetModalDialogEvent() to avoid content/plugin/ include from npobject_proxy.cc
This patch adds a new virtual method NPChannelBase::GetModalDialogEvent() to avoid the need for NPObjectProxy to cast its NPChannelBase to PluginChannel. Refactoring only, no functional change. BUG=96703 Review URL: http://codereview.chromium.org/7983032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102212 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/np_channel_base.h')
-rw-r--r--content/common/np_channel_base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/common/np_channel_base.h b/content/common/np_channel_base.h
index 5f0eac5..810cfbe 100644
--- a/content/common/np_channel_base.h
+++ b/content/common/np_channel_base.h
@@ -100,6 +100,12 @@ class NPChannelBase : public IPC::Channel::Listener,
// Returns NULL on failure.
NPObjectBase* GetNPObjectListenerForRoute(int route_id);
+ // Returns the event that's set when a call to the renderer causes a modal
+ // dialog to come up. The default implementation returns NULL. Derived
+ // classes should override this method if this functionality is required.
+ virtual base::WaitableEvent* GetModalDialogEvent(
+ gfx::NativeViewId containing_window);
+
protected:
typedef NPChannelBase* (*ChannelFactory)();