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_TABLE2_EXAMPLE_H_ | 5 #ifndef VIEWS_EXAMPLES_TABLE2_EXAMPLE_H_ |
6 #define VIEWS_EXAMPLES_TABLE2_EXAMPLE_H_ | 6 #define VIEWS_EXAMPLES_TABLE2_EXAMPLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // TableViewObserver implementation: | 123 // TableViewObserver implementation: |
124 virtual void OnSelectionChanged() { | 124 virtual void OnSelectionChanged() { |
125 PrintStatus(L"Selection changed: %d", | 125 PrintStatus(L"Selection changed: %d", |
126 table_->GetFirstSelectedRow()); | 126 table_->GetFirstSelectedRow()); |
127 } | 127 } |
128 | 128 |
129 virtual void OnDoubleClick() {} | 129 virtual void OnDoubleClick() {} |
130 | 130 |
131 virtual void OnMiddleClick() {} | 131 virtual void OnMiddleClick() {} |
132 | 132 |
133 virtual void OnKeyDown(app::KeyboardCode virtual_keycode) {} | 133 virtual void OnKeyDown(base::KeyboardCode virtual_keycode) {} |
134 | 134 |
135 virtual void OnTableViewDelete(views::TableView* table_view) {} | 135 virtual void OnTableViewDelete(views::TableView* table_view) {} |
136 | 136 |
137 virtual void OnTableView2Delete(views::TableView2* table_view) {} | 137 virtual void OnTableView2Delete(views::TableView2* table_view) {} |
138 | 138 |
139 // ButtonListener implementation: | 139 // ButtonListener implementation: |
140 virtual void ButtonPressed(views::Button* sender, const views::Event& event) { | 140 virtual void ButtonPressed(views::Button* sender, const views::Event& event) { |
141 int index = 0; | 141 int index = 0; |
142 bool show = true; | 142 bool show = true; |
143 if (sender == column1_visible_checkbox_) { | 143 if (sender == column1_visible_checkbox_) { |
(...skipping 23 matching lines...) Expand all Loading... |
167 | 167 |
168 SkBitmap icon1; | 168 SkBitmap icon1; |
169 SkBitmap icon2; | 169 SkBitmap icon2; |
170 | 170 |
171 DISALLOW_COPY_AND_ASSIGN(Table2Example); | 171 DISALLOW_COPY_AND_ASSIGN(Table2Example); |
172 }; | 172 }; |
173 | 173 |
174 } // namespace examples | 174 } // namespace examples |
175 | 175 |
176 #endif // VIEWS_EXAMPLES_TABLE2_EXAMPLE_H_ | 176 #endif // VIEWS_EXAMPLES_TABLE2_EXAMPLE_H_ |
OLD | NEW |