diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 22:55:56 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 22:55:56 +0000 |
commit | 1e0a02d6464d8d1d5934c2a9bae6e852537c76b2 (patch) | |
tree | e2bf7d9b2db6d2959d9c252a2c0e83383ca06f96 /chrome/browser/tab_contents/tab_contents_delegate.h | |
parent | 6e95706dcc9a205e78b1d4820427754d16a50465 (diff) | |
download | chromium_src-1e0a02d6464d8d1d5934c2a9bae6e852537c76b2.zip chromium_src-1e0a02d6464d8d1d5934c2a9bae6e852537c76b2.tar.gz chromium_src-1e0a02d6464d8d1d5934c2a9bae6e852537c76b2.tar.bz2 |
Provide a way for a TabContentsDelegate to take focus when we receive a notification from the
renderer that it is done cycling through the controls on the page.
Review URL: http://codereview.chromium.org/93001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents_delegate.h')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents_delegate.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_delegate.h b/chrome/browser/tab_contents/tab_contents_delegate.h index ac8739c..87e228e 100644 --- a/chrome/browser/tab_contents/tab_contents_delegate.h +++ b/chrome/browser/tab_contents/tab_contents_delegate.h @@ -157,6 +157,13 @@ class TabContentsDelegate : public PageNavigator { // this to disable inactive rendering for the frame in the window the select // is opened within if necessary. virtual void RenderWidgetShowing() {} + + // This is called when webkit tells us that it is done tabbing through + // controls on the page. Provides a way for TabContentsDelegates to handle + // this. Returns true if the delegate successfully handled it. + virtual bool TakeFocus(bool reverse) { + return false; + } }; #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |