| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/controls/table/table_view_win.h" | 5 #include "ui/views/controls/table/table_view_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/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/win/scoped_gdi_object.h" | 14 #include "base/win/scoped_gdi_object.h" |
| 15 #include "skia/ext/skia_utils_win.h" | 15 #include "skia/ext/skia_utils_win.h" |
| 16 #include "ui/gfx/image/image_skia.h" | |
| 17 #include "third_party/skia/include/core/SkColorFilter.h" | 16 #include "third_party/skia/include/core/SkColorFilter.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 19 #include "ui/base/l10n/l10n_util_win.h" | 18 #include "ui/base/l10n/l10n_util_win.h" |
| 20 #include "ui/base/models/table_model.h" | 19 #include "ui/base/models/table_model.h" |
| 21 #include "ui/base/resource/resource_bundle.h" | 20 #include "ui/base/resource/resource_bundle.h" |
| 22 #include "ui/base/win/hwnd_util.h" | 21 #include "ui/base/win/hwnd_util.h" |
| 23 #include "ui/gfx/canvas.h" | 22 #include "ui/gfx/canvas.h" |
| 24 #include "ui/gfx/favicon_size.h" | 23 #include "ui/gfx/favicon_size.h" |
| 25 #include "ui/gfx/font.h" | 24 #include "ui/gfx/font.h" |
| 26 #include "ui/gfx/icon_util.h" | 25 #include "ui/gfx/icon_util.h" |
| (...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1640 } | 1639 } |
| 1641 | 1640 |
| 1642 void TableSelectionIterator::UpdateModelIndexFromViewIndex() { | 1641 void TableSelectionIterator::UpdateModelIndexFromViewIndex() { |
| 1643 if (view_index_ == -1) | 1642 if (view_index_ == -1) |
| 1644 model_index_ = -1; | 1643 model_index_ = -1; |
| 1645 else | 1644 else |
| 1646 model_index_ = table_view_->ViewToModel(view_index_); | 1645 model_index_ = table_view_->ViewToModel(view_index_); |
| 1647 } | 1646 } |
| 1648 | 1647 |
| 1649 } // namespace views | 1648 } // namespace views |
| OLD | NEW |