OLD | NEW |
1 // Copyright (c) 2009 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_EXAMPLES_TABLE_EXAMPLE_H_ | 5 #ifndef VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ |
6 #define VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ | 6 #define VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "third_party/skia/include/core/SkCanvas.h" | 12 #include "third_party/skia/include/core/SkCanvas.h" |
13 #include "ui/base/models/table_model.h" | 13 #include "ui/base/models/table_model.h" |
14 #include "views/controls/table/table_view.h" | 14 #include "views/controls/table/table_view.h" |
15 #include "views/controls/table/table_view_observer.h" | 15 #include "views/controls/table/table_view_observer.h" |
16 #include "views/examples/example_base.h" | 16 #include "views/examples/example_base.h" |
17 #include "views/fill_layout.h" | 17 #include "views/layout/fill_layout.h" |
18 | 18 |
19 using ui::TableModel; | 19 using ui::TableModel; |
20 using ui::TableModelObserver; // TODO(beng): remove these | 20 using ui::TableModelObserver; // TODO(beng): remove these |
21 | 21 |
22 namespace examples { | 22 namespace examples { |
23 | 23 |
24 class TableExample | 24 class TableExample |
25 : public ExampleBase, | 25 : public ExampleBase, |
26 public TableModel, | 26 public TableModel, |
27 public views::ButtonListener, | 27 public views::ButtonListener, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 views::Checkbox* column2_visible_checkbox_; | 164 views::Checkbox* column2_visible_checkbox_; |
165 views::Checkbox* column3_visible_checkbox_; | 165 views::Checkbox* column3_visible_checkbox_; |
166 views::Checkbox* column4_visible_checkbox_; | 166 views::Checkbox* column4_visible_checkbox_; |
167 | 167 |
168 DISALLOW_COPY_AND_ASSIGN(TableExample); | 168 DISALLOW_COPY_AND_ASSIGN(TableExample); |
169 }; | 169 }; |
170 | 170 |
171 } // namespace examples | 171 } // namespace examples |
172 | 172 |
173 #endif // VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ | 173 #endif // VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ |
OLD | NEW |