Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Side by Side Diff: views/examples/table_example.h

Issue 3354005: Re-lands 58186: (Closed)
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « views/examples/table2_example.h ('k') | views/focus/accelerator_handler_gtk_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(base::KeyboardCode virtual_keycode) {} 127 virtual void OnKeyDown(app::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
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_
OLDNEW
« no previous file with comments | « views/examples/table2_example.h ('k') | views/focus/accelerator_handler_gtk_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698