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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // TableViewObserver: | 47 // TableViewObserver: |
48 virtual void OnSelectionChanged() OVERRIDE; | 48 virtual void OnSelectionChanged() OVERRIDE; |
49 virtual void OnDoubleClick() OVERRIDE; | 49 virtual void OnDoubleClick() OVERRIDE; |
50 virtual void OnMiddleClick() OVERRIDE; | 50 virtual void OnMiddleClick() OVERRIDE; |
51 virtual void OnKeyDown(ui::KeyboardCode virtual_keycode) OVERRIDE; | 51 virtual void OnKeyDown(ui::KeyboardCode virtual_keycode) OVERRIDE; |
52 virtual void OnTableViewDelete(TableView* table_view) OVERRIDE; | 52 virtual void OnTableViewDelete(TableView* table_view) OVERRIDE; |
53 virtual void OnTableView2Delete(TableView2* table_view) OVERRIDE; | 53 virtual void OnTableView2Delete(TableView2* table_view) OVERRIDE; |
54 | 54 |
55 // ButtonListener: | 55 // ButtonListener: |
56 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE; | 56 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; |
57 | 57 |
58 private: | 58 private: |
59 // The table to be tested. | 59 // The table to be tested. |
60 TableView* table_; | 60 TableView* table_; |
61 | 61 |
62 Checkbox* column1_visible_checkbox_; | 62 Checkbox* column1_visible_checkbox_; |
63 Checkbox* column2_visible_checkbox_; | 63 Checkbox* column2_visible_checkbox_; |
64 Checkbox* column3_visible_checkbox_; | 64 Checkbox* column3_visible_checkbox_; |
65 Checkbox* column4_visible_checkbox_; | 65 Checkbox* column4_visible_checkbox_; |
66 | 66 |
67 SkBitmap icon1_; | 67 SkBitmap icon1_; |
68 SkBitmap icon2_; | 68 SkBitmap icon2_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(TableExample); | 70 DISALLOW_COPY_AND_ASSIGN(TableExample); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace examples | 73 } // namespace examples |
74 } // namespace views | 74 } // namespace views |
75 | 75 |
76 #endif // UI_VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ | 76 #endif // UI_VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ |
OLD | NEW |