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

Unified Diff: ui/web_dialogs/web_dialog_delegate.h

Issue 812763003: Fix browser launch on the login screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused parameters. Created 6 years 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
Index: ui/web_dialogs/web_dialog_delegate.h
diff --git a/ui/web_dialogs/web_dialog_delegate.h b/ui/web_dialogs/web_dialog_delegate.h
index ccfd26ef98287f8e292653cf30d97d2d59d672b5..898b04513d416765bead45344e6eb560028e3dbd 100644
--- a/ui/web_dialogs/web_dialog_delegate.h
+++ b/ui/web_dialogs/web_dialog_delegate.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/strings/string16.h"
+#include "content/public/browser/web_contents_delegate.h"
#include "ui/base/ui_base_types.h"
#include "ui/base/window_open_disposition.h"
#include "ui/web_dialogs/web_dialogs_export.h"
@@ -128,6 +129,10 @@ class WEB_DIALOGS_EXPORT WebDialogDelegate {
const gfx::Rect& initial_pos,
bool user_gesture);
+ // A callback to control whether a WebContents will be created. Returns
+ // false to disallow the creation. Return true to use the default handler.
+ virtual bool HandleShouldCreateWebContents();
+
// Stores the dialog bounds.
virtual void StoreDialogSize(const gfx::Size& dialog_size) {}

Powered by Google App Engine
This is Rietveld 408576698