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

Unified Diff: chrome/browser/views/bookmark_table_view.cc

Issue 115309: Remove even more ATL dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/bookmark_menu_button.cc ('k') | chrome/browser/views/download_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_table_view.cc
===================================================================
--- chrome/browser/views/bookmark_table_view.cc (revision 16052)
+++ chrome/browser/views/bookmark_table_view.cc (working copy)
@@ -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 @@
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));
}
« no previous file with comments | « chrome/browser/views/bookmark_menu_button.cc ('k') | chrome/browser/views/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698