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

Side by Side Diff: views/controls/table/table_view.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/controls/table/native_table_win.cc ('k') | views/controls/table/table_view.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_CONTROLS_TABLE_TABLE_VIEW_H_ 5 #ifndef VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_
6 #define VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_ 6 #define VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include <windows.h> 12 #include <windows.h>
13 typedef struct tagNMLVCUSTOMDRAW NMLVCUSTOMDRAW; 13 typedef struct tagNMLVCUSTOMDRAW NMLVCUSTOMDRAW;
14 #endif // defined(OS_WIN) 14 #endif // defined(OS_WIN)
15 15
16 #include <map> 16 #include <map>
17 #include <vector> 17 #include <vector>
18 18
19 #include "app/keyboard_codes.h"
20 #include "app/table_model_observer.h" 19 #include "app/table_model_observer.h"
20 #include "base/keyboard_codes.h"
21 #include "third_party/skia/include/core/SkColor.h" 21 #include "third_party/skia/include/core/SkColor.h"
22 #if defined(OS_WIN) 22 #if defined(OS_WIN)
23 // TODO(port): remove the ifdef when native_control.h is ported. 23 // TODO(port): remove the ifdef when native_control.h is ported.
24 #include "views/controls/native_control.h" 24 #include "views/controls/native_control.h"
25 #endif // defined(OS_WIN) 25 #endif // defined(OS_WIN)
26 26
27 namespace gfx { 27 namespace gfx {
28 class Font; 28 class Font;
29 } 29 }
30 30
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // changed. 250 // changed.
251 virtual void OnSelectedStateChanged(); 251 virtual void OnSelectedStateChanged();
252 252
253 // Notification from the ListView that the used double clicked the table. 253 // Notification from the ListView that the used double clicked the table.
254 virtual void OnDoubleClick(); 254 virtual void OnDoubleClick();
255 255
256 // Notification from the ListView that the user middle clicked the table. 256 // Notification from the ListView that the user middle clicked the table.
257 virtual void OnMiddleClick(); 257 virtual void OnMiddleClick();
258 258
259 // Overridden from NativeControl. Notifies the observer. 259 // Overridden from NativeControl. Notifies the observer.
260 virtual bool OnKeyDown(app::KeyboardCode virtual_keycode); 260 virtual bool OnKeyDown(base::KeyboardCode virtual_keycode);
261 261
262 // Invoked to customize the colors or font at a particular cell. If you 262 // Invoked to customize the colors or font at a particular cell. If you
263 // change the colors or font, return true. This is only invoked if 263 // change the colors or font, return true. This is only invoked if
264 // SetCustomColorsEnabled(true) has been invoked. 264 // SetCustomColorsEnabled(true) has been invoked.
265 virtual bool GetCellColors(int model_row, 265 virtual bool GetCellColors(int model_row,
266 int column, 266 int column,
267 ItemColor* foreground, 267 ItemColor* foreground,
268 ItemColor* background, 268 ItemColor* background,
269 LOGFONT* logfont); 269 LOGFONT* logfont);
270 270
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 478
479 std::wstring alt_text_; 479 std::wstring alt_text_;
480 480
481 DISALLOW_COPY_AND_ASSIGN(TableView); 481 DISALLOW_COPY_AND_ASSIGN(TableView);
482 }; 482 };
483 #endif // defined(OS_WIN) 483 #endif // defined(OS_WIN)
484 484
485 } // namespace views 485 } // namespace views
486 486
487 #endif // VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_ 487 #endif // VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_
OLDNEW
« no previous file with comments | « views/controls/table/native_table_win.cc ('k') | views/controls/table/table_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698