| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |