OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/table/native_table_win.h" | 5 #include "views/controls/table/native_table_win.h" |
6 | 6 |
7 #include <commctrl.h> | 7 #include <commctrl.h> |
8 #include <windowsx.h> | 8 #include <windowsx.h> |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 void NativeTableWin::OnDoubleClick() { | 456 void NativeTableWin::OnDoubleClick() { |
457 if (!ignore_listview_change_ && table_->observer()) | 457 if (!ignore_listview_change_ && table_->observer()) |
458 table_->observer()->OnDoubleClick(); | 458 table_->observer()->OnDoubleClick(); |
459 } | 459 } |
460 | 460 |
461 void NativeTableWin::OnMiddleClick() { | 461 void NativeTableWin::OnMiddleClick() { |
462 if (!ignore_listview_change_ && table_->observer()) | 462 if (!ignore_listview_change_ && table_->observer()) |
463 table_->observer()->OnMiddleClick(); | 463 table_->observer()->OnMiddleClick(); |
464 } | 464 } |
465 | 465 |
466 bool NativeTableWin::OnKeyDown(base::KeyboardCode virtual_keycode) { | 466 bool NativeTableWin::OnKeyDown(app::KeyboardCode virtual_keycode) { |
467 if (!ignore_listview_change_ && table_->observer()) | 467 if (!ignore_listview_change_ && table_->observer()) |
468 table_->observer()->OnKeyDown(virtual_keycode); | 468 table_->observer()->OnKeyDown(virtual_keycode); |
469 return false; // Let the key event be processed as ususal. | 469 return false; // Let the key event be processed as ususal. |
470 } | 470 } |
471 | 471 |
472 LRESULT NativeTableWin::OnCustomDraw(NMLVCUSTOMDRAW* draw_info) { | 472 LRESULT NativeTableWin::OnCustomDraw(NMLVCUSTOMDRAW* draw_info) { |
473 switch (draw_info->nmcd.dwDrawStage) { | 473 switch (draw_info->nmcd.dwDrawStage) { |
474 case CDDS_PREPAINT: { | 474 case CDDS_PREPAINT: { |
475 return CDRF_NOTIFYITEMDRAW; | 475 return CDRF_NOTIFYITEMDRAW; |
476 } | 476 } |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 | 900 |
901 //////////////////////////////////////////////////////////////////////////////// | 901 //////////////////////////////////////////////////////////////////////////////// |
902 // NativeButtonWrapper, public: | 902 // NativeButtonWrapper, public: |
903 | 903 |
904 // static | 904 // static |
905 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) { | 905 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) { |
906 return new NativeTableWin(table); | 906 return new NativeTableWin(table); |
907 } | 907 } |
908 | 908 |
909 } // namespace views | 909 } // namespace views |
OLD | NEW |