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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // TableViewObserver implementation: | 128 // TableViewObserver implementation: |
129 virtual void OnSelectionChanged() { | 129 virtual void OnSelectionChanged() { |
130 PrintStatus(L"Selection changed: %d", | 130 PrintStatus(L"Selection changed: %d", |
131 table_->GetFirstSelectedRow()); | 131 table_->GetFirstSelectedRow()); |
132 } | 132 } |
133 | 133 |
134 virtual void OnDoubleClick() {} | 134 virtual void OnDoubleClick() {} |
135 | 135 |
136 virtual void OnMiddleClick() {} | 136 virtual void OnMiddleClick() {} |
137 | 137 |
138 virtual void OnKeyDown(app::KeyboardCode virtual_keycode) {} | 138 virtual void OnKeyDown(ui::KeyboardCode virtual_keycode) {} |
139 | 139 |
140 virtual void OnTableViewDelete(views::TableView* table_view) {} | 140 virtual void OnTableViewDelete(views::TableView* table_view) {} |
141 | 141 |
142 virtual void OnTableView2Delete(views::TableView2* table_view) {} | 142 virtual void OnTableView2Delete(views::TableView2* table_view) {} |
143 | 143 |
144 // ButtonListener implementation: | 144 // ButtonListener implementation: |
145 virtual void ButtonPressed(views::Button* sender, const views::Event& event) { | 145 virtual void ButtonPressed(views::Button* sender, const views::Event& event) { |
146 int index = 0; | 146 int index = 0; |
147 bool show = true; | 147 bool show = true; |
148 if (sender == column1_visible_checkbox_) { | 148 if (sender == column1_visible_checkbox_) { |
(...skipping 23 matching lines...) Expand all Loading... |
172 | 172 |
173 SkBitmap icon1; | 173 SkBitmap icon1; |
174 SkBitmap icon2; | 174 SkBitmap icon2; |
175 | 175 |
176 DISALLOW_COPY_AND_ASSIGN(Table2Example); | 176 DISALLOW_COPY_AND_ASSIGN(Table2Example); |
177 }; | 177 }; |
178 | 178 |
179 } // namespace examples | 179 } // namespace examples |
180 | 180 |
181 #endif // VIEWS_EXAMPLES_TABLE2_EXAMPLE_H_ | 181 #endif // VIEWS_EXAMPLES_TABLE2_EXAMPLE_H_ |
OLD | NEW |