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

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

Issue 3337006: Revert 58388 - Revert 58215 - Revert 58186 - Move the keyboard files from bas... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 | Annotate | Revision Log
« no previous file with comments | « views/event_gtk.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 <vector> 9 #include <vector>
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « views/event_gtk.cc ('k') | views/examples/table_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698