| 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" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 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 string16 GetText(int row, int column_id) OVERRIDE; | 44 virtual base::string16 GetText(int row, int column_id) OVERRIDE; |
| 45 virtual gfx::ImageSkia GetIcon(int row) OVERRIDE; | 45 virtual gfx::ImageSkia GetIcon(int row) OVERRIDE; |
| 46 virtual void SetObserver(ui::TableModelObserver* observer) OVERRIDE; | 46 virtual void SetObserver(ui::TableModelObserver* observer) OVERRIDE; |
| 47 | 47 |
| 48 // TableGrouper: | 48 // TableGrouper: |
| 49 virtual void GetGroupRange(int model_index, GroupRange* range) OVERRIDE; | 49 virtual void GetGroupRange(int model_index, GroupRange* range) OVERRIDE; |
| 50 | 50 |
| 51 // TableViewObserver: | 51 // TableViewObserver: |
| 52 virtual void OnSelectionChanged() OVERRIDE; | 52 virtual void OnSelectionChanged() OVERRIDE; |
| 53 virtual void OnDoubleClick() OVERRIDE; | 53 virtual void OnDoubleClick() OVERRIDE; |
| 54 virtual void OnMiddleClick() OVERRIDE; | 54 virtual void OnMiddleClick() OVERRIDE; |
| (...skipping 14 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 |