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

Side by Side Diff: views/controls/table/table_view.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/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"
21 #include "base/gtest_prod_util.h" 20 #include "base/gtest_prod_util.h"
22 #include "third_party/skia/include/core/SkColor.h" 21 #include "third_party/skia/include/core/SkColor.h"
22 #include "ui/base/keycodes/keyboard_codes.h"
23
23 #if defined(OS_WIN) 24 #if defined(OS_WIN)
24 // TODO(port): remove the ifdef when native_control.h is ported. 25 // TODO(port): remove the ifdef when native_control.h is ported.
25 #include "views/controls/native_control.h" 26 #include "views/controls/native_control.h"
26 #endif // defined(OS_WIN) 27 #endif // defined(OS_WIN)
27 28
28 namespace gfx { 29 namespace gfx {
29 class Font; 30 class Font;
30 } 31 }
31 32
32 struct TableColumn; 33 struct TableColumn;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // changed. 252 // changed.
252 virtual void OnSelectedStateChanged(); 253 virtual void OnSelectedStateChanged();
253 254
254 // Notification from the ListView that the used double clicked the table. 255 // Notification from the ListView that the used double clicked the table.
255 virtual void OnDoubleClick(); 256 virtual void OnDoubleClick();
256 257
257 // Notification from the ListView that the user middle clicked the table. 258 // Notification from the ListView that the user middle clicked the table.
258 virtual void OnMiddleClick(); 259 virtual void OnMiddleClick();
259 260
260 // Overridden from NativeControl. Notifies the observer. 261 // Overridden from NativeControl. Notifies the observer.
261 virtual bool OnKeyDown(app::KeyboardCode virtual_keycode); 262 virtual bool OnKeyDown(ui::KeyboardCode virtual_keycode);
262 263
263 // Invoked to customize the colors or font at a particular cell. If you 264 // Invoked to customize the colors or font at a particular cell. If you
264 // change the colors or font, return true. This is only invoked if 265 // change the colors or font, return true. This is only invoked if
265 // SetCustomColorsEnabled(true) has been invoked. 266 // SetCustomColorsEnabled(true) has been invoked.
266 virtual bool GetCellColors(int model_row, 267 virtual bool GetCellColors(int model_row,
267 int column, 268 int column,
268 ItemColor* foreground, 269 ItemColor* foreground,
269 ItemColor* background, 270 ItemColor* background,
270 LOGFONT* logfont); 271 LOGFONT* logfont);
271 272
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 493
493 string16 alt_text_; 494 string16 alt_text_;
494 495
495 DISALLOW_COPY_AND_ASSIGN(TableView); 496 DISALLOW_COPY_AND_ASSIGN(TableView);
496 }; 497 };
497 #endif // defined(OS_WIN) 498 #endif // defined(OS_WIN)
498 499
499 } // namespace views 500 } // namespace views
500 501
501 #endif // VIEWS_CONTROLS_TABLE_TABLE_VIEW_H_ 502 #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