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 #include "views/controls/table/table_view.h" | 5 #include "views/controls/table/table_view.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 "app/gfx/canvas.h" | 12 #include "app/gfx/canvas.h" |
13 #include "app/gfx/favicon_size.h" | 13 #include "app/gfx/favicon_size.h" |
14 #include "app/gfx/font.h" | 14 #include "app/gfx/font.h" |
15 #include "app/gfx/icon_util.h" | |
16 #include "app/l10n_util.h" | 15 #include "app/l10n_util.h" |
17 #include "app/l10n_util_win.h" | 16 #include "app/l10n_util_win.h" |
18 #include "app/resource_bundle.h" | 17 #include "app/resource_bundle.h" |
19 #include "app/table_model.h" | 18 #include "app/table_model.h" |
20 #include "base/string_util.h" | 19 #include "base/string_util.h" |
21 #include "base/win_util.h" | 20 #include "base/win_util.h" |
| 21 #include "gfx/icon_util.h" |
22 #include "skia/ext/skia_utils_win.h" | 22 #include "skia/ext/skia_utils_win.h" |
23 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
24 #include "third_party/skia/include/core/SkColorFilter.h" | 24 #include "third_party/skia/include/core/SkColorFilter.h" |
25 #include "views/controls/native/native_view_host.h" | 25 #include "views/controls/native/native_view_host.h" |
26 #include "views/controls/table/table_view_observer.h" | 26 #include "views/controls/table/table_view_observer.h" |
27 | 27 |
28 namespace views { | 28 namespace views { |
29 | 29 |
30 // Added to column width to prevent truncation. | 30 // Added to column width to prevent truncation. |
31 const int kListViewTextPadding = 15; | 31 const int kListViewTextPadding = 15; |
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1575 } | 1575 } |
1576 | 1576 |
1577 void TableSelectionIterator::UpdateModelIndexFromViewIndex() { | 1577 void TableSelectionIterator::UpdateModelIndexFromViewIndex() { |
1578 if (view_index_ == -1) | 1578 if (view_index_ == -1) |
1579 model_index_ = -1; | 1579 model_index_ = -1; |
1580 else | 1580 else |
1581 model_index_ = table_view_->view_to_model(view_index_); | 1581 model_index_ = table_view_->view_to_model(view_index_); |
1582 } | 1582 } |
1583 | 1583 |
1584 } // namespace views | 1584 } // namespace views |
OLD | NEW |