| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEW2_H_ | 5 #ifndef VIEWS_CONTROLS_TABLE_TABLE_VIEW2_H_ |
| 6 #define VIEWS_CONTROLS_TABLE_TABLE_VIEW2_H_ | 6 #define VIEWS_CONTROLS_TABLE_TABLE_VIEW2_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // TODO(jcampan): add group support. | 46 // TODO(jcampan): add group support. |
| 47 | 47 |
| 48 namespace views { | 48 namespace views { |
| 49 | 49 |
| 50 class ListView; | 50 class ListView; |
| 51 class ListViewParent; | 51 class ListViewParent; |
| 52 class TableView; | 52 class TableView; |
| 53 class TableViewObserver; | 53 class TableViewObserver; |
| 54 class View; | 54 class View; |
| 55 | 55 |
| 56 class VIEWS_API TableView2 : public View, public TableModelObserver { | 56 class VIEWS_EXPORT TableView2 : public View, public TableModelObserver { |
| 57 public: | 57 public: |
| 58 typedef TableSelectionIterator iterator; | 58 typedef TableSelectionIterator iterator; |
| 59 | 59 |
| 60 // A helper struct for GetCellColors. Set |color_is_set| to true if color is | 60 // A helper struct for GetCellColors. Set |color_is_set| to true if color is |
| 61 // set. See OnCustomDraw for more details on why we need this. | 61 // set. See OnCustomDraw for more details on why we need this. |
| 62 struct ItemColor { | 62 struct ItemColor { |
| 63 bool color_is_set; | 63 bool color_is_set; |
| 64 SkColor color; | 64 SkColor color; |
| 65 }; | 65 }; |
| 66 | 66 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 264 |
| 265 // The object that actually implements the table. | 265 // The object that actually implements the table. |
| 266 NativeTableWrapper* native_wrapper_; | 266 NativeTableWrapper* native_wrapper_; |
| 267 | 267 |
| 268 DISALLOW_COPY_AND_ASSIGN(TableView2); | 268 DISALLOW_COPY_AND_ASSIGN(TableView2); |
| 269 }; | 269 }; |
| 270 | 270 |
| 271 } // namespace views | 271 } // namespace views |
| 272 | 272 |
| 273 #endif // VIEWS_CONTROLS_TABLE_TABLE_VIEW2_H_ | 273 #endif // VIEWS_CONTROLS_TABLE_TABLE_VIEW2_H_ |
| OLD | NEW |