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

Side by Side Diff: views/controls/table/table_view.h

Issue 115309: Remove even more ATL dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/table/group_table_view.cc ('k') | views/controls/table/table_view.cc » ('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) 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 #ifndef VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_ 5 #ifndef VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_
6 #define VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_ 6 #define VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include <windows.h> 11 #include <windows.h>
12 typedef struct tagNMLVCUSTOMDRAW NMLVCUSTOMDRAW;
12 #endif // defined(OS_WIN) 13 #endif // defined(OS_WIN)
13 14
14 #include <map> 15 #include <map>
15 #include <unicode/coll.h> 16 #include <unicode/coll.h>
16 #include <unicode/uchar.h> 17 #include <unicode/uchar.h>
17 #include <vector> 18 #include <vector>
18 19
19 #include "app/l10n_util.h" 20 #include "app/l10n_util.h"
20 #include "base/logging.h" 21 #include "base/logging.h"
21 #include "third_party/skia/include/core/SkColor.h" 22 #include "third_party/skia/include/core/SkColor.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 ItemColor* foreground, 464 ItemColor* foreground,
464 ItemColor* background, 465 ItemColor* background,
465 LOGFONT* logfont); 466 LOGFONT* logfont);
466 467
467 // Subclasses that want to perform some custom painting (on top of the regular 468 // Subclasses that want to perform some custom painting (on top of the regular
468 // list view painting) should return true here and implement the PostPaint 469 // list view painting) should return true here and implement the PostPaint
469 // method. 470 // method.
470 virtual bool ImplementPostPaint() { return false; } 471 virtual bool ImplementPostPaint() { return false; }
471 // Subclasses can implement in this method extra-painting for cells. 472 // Subclasses can implement in this method extra-painting for cells.
472 virtual void PostPaint(int model_row, int column, bool selected, 473 virtual void PostPaint(int model_row, int column, bool selected,
473 const CRect& bounds, HDC device_context) { } 474 const gfx::Rect& bounds, HDC device_context) { }
474 virtual void PostPaint() {} 475 virtual void PostPaint() {}
475 476
476 virtual HWND CreateNativeControl(HWND parent_container); 477 virtual HWND CreateNativeControl(HWND parent_container);
477 478
478 virtual LRESULT OnNotify(int w_param, LPNMHDR l_param); 479 virtual LRESULT OnNotify(int w_param, LPNMHDR l_param);
479 480
480 // Overriden to destroy the image list. 481 // Overriden to destroy the image list.
481 virtual void OnDestroy(); 482 virtual void OnDestroy();
482 483
483 // Used to sort the two rows. Returns a value < 0, == 0 or > 0 indicating 484 // Used to sort the two rows. Returns a value < 0, == 0 or > 0 indicating
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 scoped_array<int> view_to_model_; 668 scoped_array<int> view_to_model_;
668 scoped_array<int> model_to_view_; 669 scoped_array<int> model_to_view_;
669 670
670 DISALLOW_COPY_AND_ASSIGN(TableView); 671 DISALLOW_COPY_AND_ASSIGN(TableView);
671 }; 672 };
672 #endif // defined(OS_WIN) 673 #endif // defined(OS_WIN)
673 674
674 } // namespace views 675 } // namespace views
675 676
676 #endif // VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_ 677 #endif // VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_
OLDNEW
« no previous file with comments | « views/controls/table/group_table_view.cc ('k') | views/controls/table/table_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698