From b7937d5ba2a47d0016933fae4f856e83e5a57afb Mon Sep 17 00:00:00 2001 From: "petersont@google.com" Date: Wed, 10 Sep 2008 22:12:19 +0000 Subject: Double clicking on an item in the task manager should bring the relevant tab forward. Review URL: http://codereview.chromium.org/1822 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2026 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/views/table_view.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'chrome/views/table_view.cc') diff --git a/chrome/views/table_view.cc b/chrome/views/table_view.cc index 2ca2f37..6d1bc60 100644 --- a/chrome/views/table_view.cc +++ b/chrome/views/table_view.cc @@ -880,7 +880,7 @@ void TableView::UpdateListViewCache0(int start, int length, bool add) { std::wstring text = model_->GetText(i, visible_columns_[0]); item.iItem = i; item.pszText = const_cast(text.c_str()); - item.state = INDEXTOSTATEIMAGEMASK(model_->IsChecked(i) ? 2 : 1) ; + item.state = INDEXTOSTATEIMAGEMASK(model_->IsChecked(i) ? 2 : 1); ListView_SetItem(list_view_, &item); } } @@ -935,6 +935,12 @@ void TableView::OnSelectedStateChanged(int item, bool is_selected) { } } +void TableView::OnKeyDown(unsigned short virtual_keycode) { + if (!ignore_listview_change_ && table_view_observer_) { + table_view_observer_->OnKeyDown(virtual_keycode); + } +} + void TableView::OnCheckedStateChanged(int item, bool is_checked) { if (!ignore_listview_change_) { model_->SetChecked(item, is_checked); -- cgit v1.1