diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 17:31:10 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 17:31:10 +0000 |
commit | 65f73a3a996bdbaa167e38704df092aa39b53d3a (patch) | |
tree | f35068757a31bd1efe03996c8a58635dc7edb588 /chrome/browser/views/bookmark_table_view.cc | |
parent | 3c39333a11a67ffe72a8989be898dca8421d573b (diff) | |
download | chromium_src-65f73a3a996bdbaa167e38704df092aa39b53d3a.zip chromium_src-65f73a3a996bdbaa167e38704df092aa39b53d3a.tar.gz chromium_src-65f73a3a996bdbaa167e38704df092aa39b53d3a.tar.bz2 |
Remove even more ATL dependencies.
Review URL: http://codereview.chromium.org/115309
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_table_view.cc')
-rw-r--r-- | chrome/browser/views/bookmark_table_view.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/views/bookmark_table_view.cc b/chrome/browser/views/bookmark_table_view.cc index c1b4023..edbedf0 100644 --- a/chrome/browser/views/bookmark_table_view.cc +++ b/chrome/browser/views/bookmark_table_view.cc @@ -4,6 +4,8 @@ #include "chrome/browser/views/bookmark_table_view.h" +#include <commctrl.h> + #include "app/drag_drop_types.h" #include "app/gfx/chrome_canvas.h" #include "app/gfx/chrome_font.h" @@ -430,11 +432,12 @@ void BookmarkTableView::PaintAltText() { gfx::Rect BookmarkTableView::GetAltTextBounds() { static const int kXOffset = 16; DCHECK(GetNativeControlHWND()); - CRect client_rect; - GetClientRect(GetNativeControlHWND(), client_rect); + RECT client_rect_rect; + GetClientRect(GetNativeControlHWND(), &client_rect_rect); + gfx::Rect client_rect(client_rect_rect); ChromeFont font = GetAltTextFont(); // Pad height by 2 for halo. - return gfx::Rect(kXOffset, content_offset(), client_rect.Width() - kXOffset, + return gfx::Rect(kXOffset, content_offset(), client_rect.width() - kXOffset, std::max(kImageSize, font.height() + 2)); } |