summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.h
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-22 18:07:51 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-22 18:07:51 +0000
commit36cf19b922c0b2f31dcab456fe2e36b1e12dbf4f (patch)
treedc451ce84eb1cd7a6d72e8a7be4b075bfde111b5 /chrome/browser/external_tab_container.h
parent605fede7a976ee0859f1b7d19066553edef6d192 (diff)
downloadchromium_src-36cf19b922c0b2f31dcab456fe2e36b1e12dbf4f.zip
chromium_src-36cf19b922c0b2f31dcab456fe2e36b1e12dbf4f.tar.gz
chromium_src-36cf19b922c0b2f31dcab456fe2e36b1e12dbf4f.tar.bz2
The ExternalTabContainer object which implements the TabContentsDelegate interface now implements the
ShowHtmlDialog function which is needed to support HTML dialog popups like those displayed by Gears.' Fixes http://b/issue?id=1963582 Bug=1963582 Review URL: http://codereview.chromium.org/159162 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.h')
-rw-r--r--chrome/browser/external_tab_container.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/external_tab_container.h b/chrome/browser/external_tab_container.h
index 64accf5..f698c9e 100644
--- a/chrome/browser/external_tab_container.h
+++ b/chrome/browser/external_tab_container.h
@@ -8,6 +8,7 @@
#include <vector>
#include "chrome/browser/automation/automation_resource_message_filter.h"
+#include "chrome/browser/browser.h"
#include "chrome/browser/tab_contents/tab_contents_delegate.h"
#include "chrome/common/notification_observer.h"
#include "chrome/common/notification_registrar.h"
@@ -103,6 +104,14 @@ class ExternalTabContainer : public TabContentsDelegate,
// parameter.
virtual bool ExecuteContextMenuCommand(int command);
+ // Show a dialog with HTML content. |delegate| contains a pointer to the
+ // delegate who knows how to display the dialog (which file URL and JSON
+ // string input to use during initialization). |parent_window| is the window
+ // that should be parent of the dialog, or NULL for the default.
+ virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
+ gfx::NativeWindow parent_window);
+
+
protected:
// Overridden from views::WidgetWin:
virtual void OnDestroy();
@@ -145,6 +154,9 @@ class ExternalTabContainer : public TabContentsDelegate,
// If all the url requests for this tab are to be loaded via automation.
bool load_requests_via_automation_;
+ // Scoped browser object for this ExternalTabContainer instance.
+ scoped_ptr<Browser> browser_;
+
DISALLOW_COPY_AND_ASSIGN(ExternalTabContainer);
};