Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: views/controls/table/table_view.cc

Issue 114059: Refactors HWNDView, NativeViewHostGtk and NativeViewHost so that they match t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/separator.cc ('k') | views/controls/textfield/native_textfield_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <windowsx.h> 7 #include <windowsx.h>
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlmisc.h> 10 #include <atlmisc.h>
11 11
12 #include <algorithm> 12 #include <algorithm>
13 13
14 #include "app/gfx/canvas.h" 14 #include "app/gfx/canvas.h"
15 #include "app/gfx/favicon_size.h" 15 #include "app/gfx/favicon_size.h"
16 #include "app/gfx/icon_util.h" 16 #include "app/gfx/icon_util.h"
17 #include "app/l10n_util_win.h" 17 #include "app/l10n_util_win.h"
18 #include "app/resource_bundle.h" 18 #include "app/resource_bundle.h"
19 #include "base/string_util.h" 19 #include "base/string_util.h"
20 #include "base/win_util.h" 20 #include "base/win_util.h"
21 #include "skia/ext/skia_utils_win.h" 21 #include "skia/ext/skia_utils_win.h"
22 #include "third_party/skia/include/core/SkBitmap.h" 22 #include "third_party/skia/include/core/SkBitmap.h"
23 #include "third_party/skia/include/core/SkColorFilter.h" 23 #include "third_party/skia/include/core/SkColorFilter.h"
24 #include "views/controls/hwnd_view.h" 24 #include "views/controls/native/native_view_host.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 // TableModel ----------------------------------------------------------------- 33 // TableModel -----------------------------------------------------------------
34 34
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 } 1589 }
1590 1590
1591 void TableSelectionIterator::UpdateModelIndexFromViewIndex() { 1591 void TableSelectionIterator::UpdateModelIndexFromViewIndex() {
1592 if (view_index_ == -1) 1592 if (view_index_ == -1)
1593 model_index_ = -1; 1593 model_index_ = -1;
1594 else 1594 else
1595 model_index_ = table_view_->view_to_model(view_index_); 1595 model_index_ = table_view_->view_to_model(view_index_);
1596 } 1596 }
1597 1597
1598 } // namespace views 1598 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/separator.cc ('k') | views/controls/textfield/native_textfield_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698