Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1208)

Side by Side Diff: views/controls/tree/tree_view.cc

Issue 322006: BookmarkManager keyboard shortcuts were broken (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/tree/tree_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "views/controls/tree/tree_view.h" 5 #include "views/controls/tree/tree_view.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "app/gfx/canvas_paint.h" 9 #include "app/gfx/canvas_paint.h"
10 #include "app/gfx/icon_util.h" 10 #include "app/gfx/icon_util.h"
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 } 443 }
444 editing_node_ = NULL; 444 editing_node_ = NULL;
445 // Return value ignored. 445 // Return value ignored.
446 return 0; 446 return 0;
447 } 447 }
448 448
449 case TVN_KEYDOWN: 449 case TVN_KEYDOWN:
450 if (controller_) { 450 if (controller_) {
451 NMTVKEYDOWN* key_down_message = 451 NMTVKEYDOWN* key_down_message =
452 reinterpret_cast<NMTVKEYDOWN*>(l_param); 452 reinterpret_cast<NMTVKEYDOWN*>(l_param);
453 controller_->OnTreeViewKeyDown(key_down_message->wVKey); 453 controller_->OnTreeViewKeyDown(
454 win_util::WinToKeyboardCode(key_down_message->wVKey));
454 } 455 }
455 break; 456 break;
456 457
457 default: 458 default:
458 break; 459 break;
459 } 460 }
460 return 0; 461 return 0;
461 } 462 }
462 463
463 bool TreeView::OnKeyDown(base::KeyboardCode virtual_key_code) { 464 bool TreeView::OnKeyDown(base::KeyboardCode virtual_key_code) {
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 } 736 }
736 // Fall through and let the default handler process as well. 737 // Fall through and let the default handler process as well.
737 break; 738 break;
738 } 739 }
739 WNDPROC handler = tree->original_handler_; 740 WNDPROC handler = tree->original_handler_;
740 DCHECK(handler); 741 DCHECK(handler);
741 return CallWindowProc(handler, window, message, w_param, l_param); 742 return CallWindowProc(handler, window, message, w_param, l_param);
742 } 743 }
743 744
744 } // namespace views 745 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/tree/tree_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698