summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.h
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-09 16:46:25 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-09 16:46:25 +0000
commit3941c026ba6576a4e21c93f3f08b917505c369a1 (patch)
tree2dbaad011bd9b20eadfbc25477c20a51a7f60a6e /chrome/browser/external_tab_container.h
parentf61b898ba829ce8b1393f5a518a0f28eaafa1408 (diff)
downloadchromium_src-3941c026ba6576a4e21c93f3f08b917505c369a1.zip
chromium_src-3941c026ba6576a4e21c93f3f08b917505c369a1.tar.gz
chromium_src-3941c026ba6576a4e21c93f3f08b917505c369a1.tar.bz2
Adding support for tab notifications and initializing the focus of an automated tab.
Review URL: http://codereview.chromium.org/20125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.h')
-rw-r--r--chrome/browser/external_tab_container.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/external_tab_container.h b/chrome/browser/external_tab_container.h
index b09f032..29c0d81 100644
--- a/chrome/browser/external_tab_container.h
+++ b/chrome/browser/external_tab_container.h
@@ -39,6 +39,7 @@ class ExternalTabContainer : public TabContentsDelegate,
public:
BEGIN_MSG_MAP(ExternalTabContainer)
MESSAGE_HANDLER(WM_SIZE, OnSize)
+ MESSAGE_HANDLER(WM_SETFOCUS, OnSetFocus)
MSG_WM_DESTROY(OnDestroy)
END_MSG_MAP()
@@ -114,6 +115,9 @@ class ExternalTabContainer : public TabContentsDelegate,
// message it did not process
void ProcessUnhandledAccelerator(const MSG& msg);
+ // See TabContents::SetInitialFocus
+ void SetInitialFocus(bool reverse);
+
// A helper method that tests whether the given window is an
// ExternalTabContainer window
static bool IsExternalTabContainer(HWND window);
@@ -124,11 +128,13 @@ class ExternalTabContainer : public TabContentsDelegate,
protected:
LRESULT OnSize(UINT, WPARAM, LPARAM, BOOL& handled);
+ LRESULT OnSetFocus(UINT msg, WPARAM wp, LPARAM lp, BOOL& handled);
+
void OnDestroy();
void OnFinalMessage(HWND window);
protected:
- TabContents *tab_contents_;
+ TabContents* tab_contents_;
AutomationProvider* automation_;
NotificationRegistrar registrar_;