diff options
author | klink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-18 19:07:34 +0000 |
---|---|---|
committer | klink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-18 19:07:34 +0000 |
commit | 5c184a6845df0c3a75f8e2f28e71ab25e5f6f535 (patch) | |
tree | 82fc59edd083574723f89f250e1abf079a9894ca /chrome/browser | |
parent | 8248eb320e96a977142afa7b6813a5711968e6c3 (diff) | |
download | chromium_src-5c184a6845df0c3a75f8e2f28e71ab25e5f6f535.zip chromium_src-5c184a6845df0c3a75f8e2f28e71ab25e5f6f535.tar.gz chromium_src-5c184a6845df0c3a75f8e2f28e71ab25e5f6f535.tar.bz2 |
Adds the Home button to the MSAA focus order, if enabled. Also removes an unnecessary check from ViewAccessibility.
Review URL: http://codereview.chromium.org/15026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/view_ids.h | 1 | ||||
-rw-r--r-- | chrome/browser/views/toolbar_view.cc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/view_ids.h b/chrome/browser/view_ids.h index 171b134..c0780ab 100644 --- a/chrome/browser/view_ids.h +++ b/chrome/browser/view_ids.h @@ -32,6 +32,7 @@ enum ViewID { VIEW_ID_BACK_BUTTON, VIEW_ID_FORWARD_BUTTON, VIEW_ID_RELOAD_BUTTON, + VIEW_ID_HOME_BUTTON, VIEW_ID_STAR_BUTTON, VIEW_ID_LOCATION_BAR, VIEW_ID_GO_BUTTON, diff --git a/chrome/browser/views/toolbar_view.cc b/chrome/browser/views/toolbar_view.cc index ee8fae8..855f8a7 100644 --- a/chrome/browser/views/toolbar_view.cc +++ b/chrome/browser/views/toolbar_view.cc @@ -157,6 +157,7 @@ void BrowserToolbarView::CreateLeftSideControls() { home_->SetImage(views::Button::BS_PUSHED, rb.GetBitmapNamed(IDR_HOME_P)); home_->SetTooltipText(l10n_util::GetString(IDS_TOOLTIP_HOME)); home_->SetAccessibleName(l10n_util::GetString(IDS_ACCNAME_HOME)); + home_->SetID(VIEW_ID_HOME_BUTTON); AddChildView(home_); controller_->AddManagedButton(home_, IDC_HOME); } |