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

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

Issue 6246001: Move app/key* to ui/base/keycodes/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « views/event_x.cc ('k') | views/examples/table_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) 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
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
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_
OLDNEW
« no previous file with comments | « views/event_x.cc ('k') | views/examples/table_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698