| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXAMPLES_TABLE_EXAMPLE_H_ | 5 #ifndef UI_VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ |
| 6 #define UI_VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ | 6 #define UI_VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "third_party/skia/include/core/SkBitmap.h" | 12 #include "third_party/skia/include/core/SkBitmap.h" |
| 13 #include "ui/base/models/table_model.h" | 13 #include "ui/base/models/table_model.h" |
| 14 #include "ui/views/controls/button/button.h" | 14 #include "ui/views/controls/button/button.h" |
| 15 #include "ui/views/controls/table/table_grouper.h" | 15 #include "ui/views/controls/table/table_grouper.h" |
| 16 #include "ui/views/controls/table/table_view.h" | 16 #include "ui/views/controls/table/table_view.h" |
| 17 #include "ui/views/controls/table/table_view_observer.h" | 17 #include "ui/views/controls/table/table_view_observer.h" |
| 18 #include "ui/views/examples/example_base.h" | 18 #include "ui/views/examples/example_base.h" |
| 19 | 19 |
| 20 namespace gfx { | 20 namespace gfx { |
| 21 class ImageSkia; | 21 class ImageSkia; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace views { | 24 namespace views { |
| 25 class Checkbox; | 25 class Checkbox; |
| 26 class TableView; | 26 class TableView; |
| 27 | 27 |
| 28 namespace examples { | 28 namespace examples { |
| 29 | 29 |
| 30 class TableExample : public ExampleBase, | 30 class VIEWS_EXAMPLES_EXPORT TableExample : public ExampleBase, |
| 31 public ui::TableModel, | 31 public ui::TableModel, |
| 32 public TableGrouper, | 32 public TableGrouper, |
| 33 public TableViewObserver, | 33 public TableViewObserver, |
| 34 public ButtonListener { | 34 public ButtonListener { |
| 35 public: | 35 public: |
| 36 TableExample(); | 36 TableExample(); |
| 37 virtual ~TableExample(); | 37 virtual ~TableExample(); |
| 38 | 38 |
| 39 // ExampleBase: | 39 // ExampleBase: |
| 40 virtual void CreateExampleView(View* container) OVERRIDE; | 40 virtual void CreateExampleView(View* container) OVERRIDE; |
| 41 | 41 |
| 42 // ui::TableModel: | 42 // ui::TableModel: |
| 43 virtual int RowCount() OVERRIDE; | 43 virtual int RowCount() OVERRIDE; |
| 44 virtual base::string16 GetText(int row, int column_id) OVERRIDE; | 44 virtual base::string16 GetText(int row, int column_id) OVERRIDE; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 69 SkBitmap icon1_; | 69 SkBitmap icon1_; |
| 70 SkBitmap icon2_; | 70 SkBitmap icon2_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(TableExample); | 72 DISALLOW_COPY_AND_ASSIGN(TableExample); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace examples | 75 } // namespace examples |
| 76 } // namespace views | 76 } // namespace views |
| 77 | 77 |
| 78 #endif // UI_VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ | 78 #endif // UI_VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ |
| OLD | NEW |