OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "views/controls/table/native_table_win.h" | 5 #include "ui/views/controls/table/native_table_win.h" |
6 | 6 |
7 #include <commctrl.h> | 7 #include <commctrl.h> |
8 #include <windowsx.h> | 8 #include <windowsx.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/win/scoped_gdi_object.h" | 13 #include "base/win/scoped_gdi_object.h" |
14 #include "skia/ext/skia_utils_win.h" | 14 #include "skia/ext/skia_utils_win.h" |
15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
16 #include "ui/base/l10n/l10n_util_win.h" | 16 #include "ui/base/l10n/l10n_util_win.h" |
17 #include "ui/base/models/table_model.h" | 17 #include "ui/base/models/table_model.h" |
18 #include "ui/base/win/hwnd_util.h" | 18 #include "ui/base/win/hwnd_util.h" |
19 #include "ui/gfx/canvas_skia.h" | 19 #include "ui/gfx/canvas_skia.h" |
20 #include "ui/gfx/favicon_size.h" | 20 #include "ui/gfx/favicon_size.h" |
21 #include "ui/gfx/icon_util.h" | 21 #include "ui/gfx/icon_util.h" |
| 22 #include "ui/views/controls/table/table_view2.h" |
| 23 #include "ui/views/controls/table/table_view_observer.h" |
22 #include "ui/views/widget/widget.h" | 24 #include "ui/views/widget/widget.h" |
23 #include "views/controls/table/table_view2.h" | |
24 #include "views/controls/table/table_view_observer.h" | |
25 | 25 |
26 namespace views { | 26 namespace views { |
27 | 27 |
28 // Added to column width to prevent truncation. | 28 // Added to column width to prevent truncation. |
29 const int kListViewTextPadding = 15; | 29 const int kListViewTextPadding = 15; |
30 // Additional column width necessary if column has icons. | 30 // Additional column width necessary if column has icons. |
31 const int kListViewIconWidthAndPadding = 18; | 31 const int kListViewIconWidthAndPadding = 18; |
32 | 32 |
33 // static | 33 // static |
34 const int NativeTableWin::kImageSize = 18; | 34 const int NativeTableWin::kImageSize = 18; |
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 | 905 |
906 //////////////////////////////////////////////////////////////////////////////// | 906 //////////////////////////////////////////////////////////////////////////////// |
907 // NativeTableWrapper, public: | 907 // NativeTableWrapper, public: |
908 | 908 |
909 // static | 909 // static |
910 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) { | 910 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) { |
911 return new NativeTableWin(table); | 911 return new NativeTableWin(table); |
912 } | 912 } |
913 | 913 |
914 } // namespace views | 914 } // namespace views |
OLD | NEW |