diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 22:39:01 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 22:39:01 +0000 |
commit | a50a4905eba14504880c53952c37d5a6081cb1ef (patch) | |
tree | 8eaa81c77e66ecc26195124cdc3471501804e6f0 /chrome/browser/external_tab_container.h | |
parent | 1c13aa8dc0a48cdbcfb76a3ed91d096a7f768946 (diff) | |
download | chromium_src-a50a4905eba14504880c53952c37d5a6081cb1ef.zip chromium_src-a50a4905eba14504880c53952c37d5a6081cb1ef.tar.gz chromium_src-a50a4905eba14504880c53952c37d5a6081cb1ef.tar.bz2 |
Added support in the ExternalTabContainer for handling the NEW_FOREGROUND_TAB and NEW_BACKGROUND_TAB dispositions in its implementation of TabContents::AddNewContents. These dispositions are handled by creating a new ExternalTabContainer instance, attaching it to the automation provider and sending off the AutomationMsg_AttachExternalTab IPC to the automation client requesting it to attach to the newly created tab.
This fixes bug http://b/issue?id=2050347
Bug=2050347
Review URL: http://codereview.chromium.org/164530
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.h')
-rw-r--r-- | chrome/browser/external_tab_container.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/external_tab_container.h b/chrome/browser/external_tab_container.h index cfee279..f51761a 100644 --- a/chrome/browser/external_tab_container.h +++ b/chrome/browser/external_tab_container.h @@ -42,12 +42,17 @@ class ExternalTabContainer : public TabContentsDelegate, automation_profile_->set_tab_handle(handle); } + int tab_handle() const { + return tab_handle_; + } + bool Init(Profile* profile, HWND parent, const gfx::Rect& bounds, DWORD style, bool load_requests_via_automation, - bool handle_top_level_requests); + bool handle_top_level_requests, + TabContents* existing_tab_contents); // This is invoked when the external host reflects back to us a keyboard // message it did not process @@ -160,6 +165,9 @@ class ExternalTabContainer : public TabContentsDelegate, // If all the url requests for this tab are to be loaded via automation. bool load_requests_via_automation_; + // whether top level URL requests are to be handled by the automation client. + bool handle_top_level_requests_; + // Scoped browser object for this ExternalTabContainer instance. scoped_ptr<Browser> browser_; |