| 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 UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW2_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW2_H_ |
| 6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW2_H_ | 6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW2_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "third_party/skia/include/core/SkColor.h" | 14 #include "third_party/skia/include/core/SkColor.h" |
| 15 #include "ui/base/models/table_model_observer.h" | 15 #include "ui/base/models/table_model_observer.h" |
| 16 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
| 17 #include "ui/views/controls/table/native_table_wrapper.h" | 17 #include "ui/views/controls/table/native_table_wrapper.h" |
| 18 #include "ui/views/controls/table/table_view.h" | 18 #include "ui/views/controls/table/table_view.h" |
| 19 #include "views/view.h" | 19 #include "ui/views/view.h" |
| 20 | 20 |
| 21 namespace ui { | 21 namespace ui { |
| 22 struct TableColumn; | 22 struct TableColumn; |
| 23 class TableModel; | 23 class TableModel; |
| 24 } | 24 } |
| 25 | 25 |
| 26 // A TableView2 is a view that displays multiple rows with any number of | 26 // A TableView2 is a view that displays multiple rows with any number of |
| 27 // columns. | 27 // columns. |
| 28 // TableView is driven by a TableModel. The model returns the contents | 28 // TableView is driven by a TableModel. The model returns the contents |
| 29 // to display. TableModel also has an Observer which is used to notify | 29 // to display. TableModel also has an Observer which is used to notify |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 259 |
| 260 // The object that actually implements the table. | 260 // The object that actually implements the table. |
| 261 NativeTableWrapper* native_wrapper_; | 261 NativeTableWrapper* native_wrapper_; |
| 262 | 262 |
| 263 DISALLOW_COPY_AND_ASSIGN(TableView2); | 263 DISALLOW_COPY_AND_ASSIGN(TableView2); |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 } // namespace views | 266 } // namespace views |
| 267 | 267 |
| 268 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW2_H_ | 268 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW2_H_ |
| OLD | NEW |