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

Side by Side Diff: ui/views/examples/table_example.cc

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/examples/table_example.h ('k') | ui/views/examples/text_example.h » ('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) 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 #include "ui/views/examples/table_example.h" 5 #include "ui/views/examples/table_example.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } 130 }
131 131
132 void TableExample::OnMiddleClick() {} 132 void TableExample::OnMiddleClick() {}
133 133
134 void TableExample::OnKeyDown(ui::KeyboardCode virtual_keycode) {} 134 void TableExample::OnKeyDown(ui::KeyboardCode virtual_keycode) {}
135 135
136 void TableExample::OnTableViewDelete(TableView* table_view) {} 136 void TableExample::OnTableViewDelete(TableView* table_view) {}
137 137
138 void TableExample::OnTableView2Delete(TableView2* table_view) {} 138 void TableExample::OnTableView2Delete(TableView2* table_view) {}
139 139
140 void TableExample::ButtonPressed(Button* sender, const Event& event) { 140 void TableExample::ButtonPressed(Button* sender, const ui::Event& event) {
141 #if defined(OS_WIN) && !defined(USE_AURA) 141 #if defined(OS_WIN) && !defined(USE_AURA)
142 int index = 0; 142 int index = 0;
143 bool show = true; 143 bool show = true;
144 if (sender == column1_visible_checkbox_) { 144 if (sender == column1_visible_checkbox_) {
145 index = 0; 145 index = 0;
146 show = column1_visible_checkbox_->checked(); 146 show = column1_visible_checkbox_->checked();
147 } else if (sender == column2_visible_checkbox_) { 147 } else if (sender == column2_visible_checkbox_) {
148 index = 1; 148 index = 1;
149 show = column2_visible_checkbox_->checked(); 149 show = column2_visible_checkbox_->checked();
150 } else if (sender == column3_visible_checkbox_) { 150 } else if (sender == column3_visible_checkbox_) {
151 index = 2; 151 index = 2;
152 show = column3_visible_checkbox_->checked(); 152 show = column3_visible_checkbox_->checked();
153 } else if (sender == column4_visible_checkbox_) { 153 } else if (sender == column4_visible_checkbox_) {
154 index = 3; 154 index = 3;
155 show = column4_visible_checkbox_->checked(); 155 show = column4_visible_checkbox_->checked();
156 } 156 }
157 table_->SetColumnVisibility(index, show); 157 table_->SetColumnVisibility(index, show);
158 #endif 158 #endif
159 } 159 }
160 160
161 } // namespace examples 161 } // namespace examples
162 } // namespace views 162 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/examples/table_example.h ('k') | ui/views/examples/text_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698