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

Unified Diff: views/controls/hwnd_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 | « views/controls/button/native_button_win.cc ('k') | views/controls/menu/view_menu_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/hwnd_view.cc
===================================================================
--- views/controls/hwnd_view.cc (revision 16052)
+++ views/controls/hwnd_view.cc (working copy)
@@ -110,9 +110,10 @@
if (fast_resize()) {
// In a fast resize, we move the window and clip it with SetWindowRgn.
- CRect rect;
- GetWindowRect(native_view(), &rect);
- ::SetWindowPos(native_view(), 0, x, y, rect.Width(), rect.Height(),
+ RECT win_rect;
+ GetWindowRect(native_view(), &win_rect);
+ gfx::Rect rect(win_rect);
+ ::SetWindowPos(native_view(), 0, x, y, rect.width(), rect.height(),
swp_flags);
HRGN clip_region = CreateRectRgn(0, 0, w, h);
« no previous file with comments | « views/controls/button/native_button_win.cc ('k') | views/controls/menu/view_menu_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698