diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 19:44:37 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 19:44:37 +0000 |
commit | 9e0c83afb60137655440e49adf3bc73b3e2c6f31 (patch) | |
tree | c839619e32e6e1c6f7c10bb4b4fcd50248a8695b /chrome/browser/tab_contents/interstitial_page.h | |
parent | cd63ef62b897937521c6943b554608b3f9349d27 (diff) | |
download | chromium_src-9e0c83afb60137655440e49adf3bc73b3e2c6f31.zip chromium_src-9e0c83afb60137655440e49adf3bc73b3e2c6f31.tar.gz chromium_src-9e0c83afb60137655440e49adf3bc73b3e2c6f31.tar.bz2 |
The last redesign of interstitial pages made them to be a render view painted on top of the normal page.
Because they were not know from the tab contents container, the actual hidden page behind them would still get focus. That was particularly noticeable when tabbing.
BUG=11505
TEST=Open a page that triggers an interstitial (ex: https://ebay.com). Press tab to cycle the focus.
Make sure the focus is moved as expected.
Review URL: http://codereview.chromium.org/113039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/interstitial_page.h')
-rw-r--r-- | chrome/browser/tab_contents/interstitial_page.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/interstitial_page.h b/chrome/browser/tab_contents/interstitial_page.h index 40cf6a1..de8a31c 100644 --- a/chrome/browser/tab_contents/interstitial_page.h +++ b/chrome/browser/tab_contents/interstitial_page.h @@ -77,6 +77,12 @@ class InterstitialPage : public NotificationObserver, bool action_taken() const { return action_taken_; } + // Sets the focus to the interstitial. + void Focus(); + + // Sets the focus to the interstitial. Called when tab traversing. + void SetInitialFocus(bool reverse); + protected: // NotificationObserver method: virtual void Observe(NotificationType type, |