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