| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |