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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder.h

Issue 1150843002: Dismiss browser plugin modal dialogs when the embedder needs to. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move test file Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/alert_dialog.pdf ('k') | content/browser/browser_plugin/browser_plugin_embedder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_plugin/browser_plugin_embedder.h
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.h b/content/browser/browser_plugin/browser_plugin_embedder.h
index 721814f504fd19807159c2fa3c96040f80d8f526..842d3ee1b03835fbf3dceb8b5fde44931cc32460 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);
« no previous file with comments | « chrome/test/data/alert_dialog.pdf ('k') | content/browser/browser_plugin/browser_plugin_embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698