summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_table_view.cc
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-13 17:31:10 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-13 17:31:10 +0000
commit65f73a3a996bdbaa167e38704df092aa39b53d3a (patch)
treef35068757a31bd1efe03996c8a58635dc7edb588 /chrome/browser/views/bookmark_table_view.cc
parent3c39333a11a67ffe72a8989be898dca8421d573b (diff)
downloadchromium_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.cc9
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));
}