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. |
James Hawkins
2012/01/30 21:02:14
operation
sail
2012/01/30 21:52:36
Done.
|
+ static Browser* StaticOpenURLFromTab(Profile* profile, |
James Hawkins
2012/01/30 21:02:14
Document |profile|, |source|, |params|.
sail
2012/01/30 21:52:36
Done.
|
+ 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, |
James Hawkins
2012/01/30 21:02:14
Document remaining params.
sail
2012/01/30 21:52:36
Done.
|
+ 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); |