diff options
author | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-10 22:12:19 +0000 |
---|---|---|
committer | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-10 22:12:19 +0000 |
commit | b7937d5ba2a47d0016933fae4f856e83e5a57afb (patch) | |
tree | d8d77aa380b72a5d92a810ebe41e9fb312808a4d /chrome/views/table_view.cc | |
parent | 2f668e22a495259d53772c6cc055547cd26cd7f1 (diff) | |
download | chromium_src-b7937d5ba2a47d0016933fae4f856e83e5a57afb.zip chromium_src-b7937d5ba2a47d0016933fae4f856e83e5a57afb.tar.gz chromium_src-b7937d5ba2a47d0016933fae4f856e83e5a57afb.tar.bz2 |
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
Diffstat (limited to 'chrome/views/table_view.cc')
-rw-r--r-- | chrome/views/table_view.cc | 8 |
1 files changed, 7 insertions, 1 deletions
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<LPWSTR>(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); |