summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_plugin/browser_plugin_embedder.h
diff options
context:
space:
mode:
authorcreis <creis@chromium.org>2015-05-27 09:13:17 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-27 16:13:54 +0000
commit89a0f782193755ad7a0b93c58dbcc1b96528405f (patch)
tree427065bf2bf7eabae88fc659cdf6ae3255138666 /content/browser/browser_plugin/browser_plugin_embedder.h
parent0a5834c562d3455f3e70c50506453d19170e0b51 (diff)
downloadchromium_src-89a0f782193755ad7a0b93c58dbcc1b96528405f.zip
chromium_src-89a0f782193755ad7a0b93c58dbcc1b96528405f.tar.gz
chromium_src-89a0f782193755ad7a0b93c58dbcc1b96528405f.tar.bz2
Dismiss browser plugin modal dialogs when the embedder needs to.
Test from wjmaclean@. PDF simply shows an alert dialog using script. BUG=482380 TEST=See bug for repro steps. Review URL: https://codereview.chromium.org/1150843002 Cr-Commit-Position: refs/heads/master@{#331584}
Diffstat (limited to 'content/browser/browser_plugin/browser_plugin_embedder.h')
-rw-r--r--content/browser/browser_plugin/browser_plugin_embedder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.h b/content/browser/browser_plugin/browser_plugin_embedder.h
index 721814f..842d3ee 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.h
+++ b/content/browser/browser_plugin/browser_plugin_embedder.h
@@ -56,6 +56,9 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver {
// Called when the screen info has changed.
void ScreenInfoChanged();
+ // Closes modal dialogs in all of the guests.
+ void CancelGuestDialogs();
+
// Called by WebContentsViewGuest when a drag operation is started within
// |guest|. This |guest| will be signaled at the end of the drag operation.
void StartDrag(BrowserPluginGuest* guest);
@@ -84,6 +87,9 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver {
// Notifies a guest that the embedder's screen info has changed.
static bool NotifyScreenInfoChanged(WebContents* guest_web_contents);
+ // Closes modal dialogs in |guest_web_contents|.
+ static bool CancelDialogs(WebContents* guest_web_contents);
+
static bool UnlockMouseIfNecessaryCallback(bool* mouse_unlocked,
WebContents* guest);