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

Unified Diff: chrome/browser/ui/webui/html_dialog_ui.h

Issue 9225053: Add a blocking version of the sync promo dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years, 11 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
Index: chrome/browser/ui/webui/html_dialog_ui.h
diff --git a/chrome/browser/ui/webui/html_dialog_ui.h b/chrome/browser/ui/webui/html_dialog_ui.h
index 4399a96e2a3e74051def237cccadfb7dc008bea6..2209c2283bfe01b87ba6b60fd2f86cc3b59651a7 100644
--- a/chrome/browser/ui/webui/html_dialog_ui.h
+++ b/chrome/browser/ui/webui/html_dialog_ui.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/string16.h"
+#include "content/public/browser/web_contents_delegate.h"
#include "content/public/browser/web_ui_controller.h"
#include "googleurl/src/gurl.h"
#include "ui/base/ui_base_types.h"
@@ -79,6 +80,24 @@ class HtmlDialogUIDelegate {
// shown (because you want to handle it yourself).
virtual bool HandleContextMenu(const ContextMenuParams& params);
+ // A callback to allow the delegate to open a new URL inside |source|.
+ // On return |out_new_contents| should contain the WebContents the URL
+ // is opened in. Return false to use the default handler.
+ virtual bool HandleOpenURLFromTab(content::WebContents* source,
+ const content::OpenURLParams& params,
+ content::WebContents** out_new_contents);
+
+ // A callback to create a new tab with |new_contents|. |source| is the
+ // WebContent where the operation originated. |disposition| controls how the
+ // new tab should be opened. |initial_pos| is the position of the window if a
+ // new window is created. |user_gesture| is true if the operation was started
+ // by a user gesture. Return false to use the default handler.
+ virtual bool HandleAddNewContents(content::WebContents* source,
+ content::WebContents* new_contents,
+ WindowOpenDisposition disposition,
+ const gfx::Rect& initial_pos,
+ bool user_gesture);
+
// Stores the dialog bounds.
virtual void StoreDialogSize(const gfx::Size& dialog_size) {}
« no previous file with comments | « chrome/browser/ui/webui/html_dialog_tab_contents_delegate.cc ('k') | chrome/browser/ui/webui/html_dialog_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698