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/l10n_util.h" | 12 #include "app/l10n_util.h" |
13 #include "app/l10n_util_win.h" | 13 #include "app/l10n_util_win.h" |
14 #include "app/resource_bundle.h" | |
15 #include "base/i18n/rtl.h" | 14 #include "base/i18n/rtl.h" |
16 #include "base/string_util.h" | 15 #include "base/string_util.h" |
17 #include "gfx/canvas_skia.h" | 16 #include "gfx/canvas_skia.h" |
18 #include "gfx/favicon_size.h" | 17 #include "gfx/favicon_size.h" |
19 #include "gfx/font.h" | 18 #include "gfx/font.h" |
20 #include "gfx/icon_util.h" | 19 #include "gfx/icon_util.h" |
21 #include "skia/ext/skia_utils_win.h" | 20 #include "skia/ext/skia_utils_win.h" |
22 #include "third_party/skia/include/core/SkBitmap.h" | 21 #include "third_party/skia/include/core/SkBitmap.h" |
23 #include "third_party/skia/include/core/SkColorFilter.h" | 22 #include "third_party/skia/include/core/SkColorFilter.h" |
24 #include "ui/base/models/table_model.h" | 23 #include "ui/base/models/table_model.h" |
| 24 #include "ui/base/resource/resource_bundle.h" |
25 #include "ui/base/win/hwnd_util.h" | 25 #include "ui/base/win/hwnd_util.h" |
26 #include "views/controls/native/native_view_host.h" | 26 #include "views/controls/native/native_view_host.h" |
27 #include "views/controls/table/table_view_observer.h" | 27 #include "views/controls/table/table_view_observer.h" |
28 | 28 |
29 using ui::TableColumn; | 29 using ui::TableColumn; |
30 | 30 |
31 namespace { | 31 namespace { |
32 | 32 |
33 int GetViewIndexFromPoint(HWND window, const gfx::Point& p) { | 33 int GetViewIndexFromPoint(HWND window, const gfx::Point& p) { |
34 LVHITTESTINFO hit_info = {0}; | 34 LVHITTESTINFO hit_info = {0}; |
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1636 } | 1636 } |
1637 | 1637 |
1638 void TableSelectionIterator::UpdateModelIndexFromViewIndex() { | 1638 void TableSelectionIterator::UpdateModelIndexFromViewIndex() { |
1639 if (view_index_ == -1) | 1639 if (view_index_ == -1) |
1640 model_index_ = -1; | 1640 model_index_ = -1; |
1641 else | 1641 else |
1642 model_index_ = table_view_->ViewToModel(view_index_); | 1642 model_index_ = table_view_->ViewToModel(view_index_); |
1643 } | 1643 } |
1644 | 1644 |
1645 } // namespace views | 1645 } // namespace views |
OLD | NEW |