OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 // TableViewObserver implementation: | 118 // TableViewObserver implementation: |
119 virtual void OnSelectionChanged() { | 119 virtual void OnSelectionChanged() { |
120 PrintStatus(L"Selection changed"); | 120 PrintStatus(L"Selection changed"); |
121 } | 121 } |
122 | 122 |
123 virtual void OnDoubleClick() {} | 123 virtual void OnDoubleClick() {} |
124 | 124 |
125 virtual void OnMiddleClick() {} | 125 virtual void OnMiddleClick() {} |
126 | 126 |
127 virtual void OnKeyDown(app::KeyboardCode virtual_keycode) {} | 127 virtual void OnKeyDown(base::KeyboardCode virtual_keycode) {} |
128 | 128 |
129 virtual void OnTableViewDelete(views::TableView* table_view) {} | 129 virtual void OnTableViewDelete(views::TableView* table_view) {} |
130 | 130 |
131 virtual void OnTableView2Delete(views::TableView2* table_view) {} | 131 virtual void OnTableView2Delete(views::TableView2* table_view) {} |
132 | 132 |
133 // ButtonListener implementation: | 133 // ButtonListener implementation: |
134 virtual void ButtonPressed(views::Button* sender, const views::Event& event) { | 134 virtual void ButtonPressed(views::Button* sender, const views::Event& event) { |
135 int index = 0; | 135 int index = 0; |
136 bool show = true; | 136 bool show = true; |
137 if (sender == column1_visible_checkbox_) { | 137 if (sender == column1_visible_checkbox_) { |
(...skipping 23 matching lines...) Expand all Loading... |
161 views::Checkbox* column2_visible_checkbox_; | 161 views::Checkbox* column2_visible_checkbox_; |
162 views::Checkbox* column3_visible_checkbox_; | 162 views::Checkbox* column3_visible_checkbox_; |
163 views::Checkbox* column4_visible_checkbox_; | 163 views::Checkbox* column4_visible_checkbox_; |
164 | 164 |
165 DISALLOW_COPY_AND_ASSIGN(TableExample); | 165 DISALLOW_COPY_AND_ASSIGN(TableExample); |
166 }; | 166 }; |
167 | 167 |
168 } // namespace examples | 168 } // namespace examples |
169 | 169 |
170 #endif // VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ | 170 #endif // VIEWS_EXAMPLES_TABLE_EXAMPLE_H_ |
OLD | NEW |