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

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

Issue 9225053: Add a blocking version of the sync promo dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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_tab_contents_delegate.h
diff --git a/chrome/browser/ui/webui/html_dialog_tab_contents_delegate.h b/chrome/browser/ui/webui/html_dialog_tab_contents_delegate.h
index 198d90a37b834ceb82956d514a5dcfddacb4db39..e678841fc09dc0d2aad9d31dd4f6dd6b4c7ac0e0 100644
--- a/chrome/browser/ui/webui/html_dialog_tab_contents_delegate.h
+++ b/chrome/browser/ui/webui/html_dialog_tab_contents_delegate.h
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "content/public/browser/web_contents_delegate.h"
+class Browser;
class Profile;
// This class implements (and mostly ignores) most of
@@ -18,6 +19,22 @@ class Profile;
// behave consistently.
class HtmlDialogTabContentsDelegate : public content::WebContentsDelegate {
public:
+ // Opens the URL. On return |out_new_contents| contains the WebContents the
+ // URL is opened in. Returns the browser spawned by the operatoin.
+ static Browser* StaticOpenURLFromTab(Profile* profile,
+ content::WebContents* source,
+ const content::OpenURLParams& params,
+ content::WebContents** out_new_contents);
+
+ // Creates a new tab with |new_contents|. Returns the browser spawned by the
+ // operation.
+ static Browser* StaticAddNewContents(Profile* profile,
+ content::WebContents* source,
+ content::WebContents* new_contents,
+ WindowOpenDisposition disposition,
+ const gfx::Rect& initial_pos,
+ bool user_gesture);
+
// Profile must be non-NULL.
explicit HtmlDialogTabContentsDelegate(Profile* profile);

Powered by Google App Engine
This is Rietveld 408576698