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

Side by Side Diff: views/controls/table/native_table_win.cc

Issue 3354005: Re-lands 58186: (Closed)
Patch Set: Created 10 years, 3 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
« no previous file with comments | « views/controls/table/native_table_win.h ('k') | views/controls/table/table_view.h » ('j') | 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) 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
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
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
OLDNEW
« no previous file with comments | « views/controls/table/native_table_win.h ('k') | views/controls/table/table_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698