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

Side by Side Diff: ui/aura/desktop_host_win.cc

Issue 8564030: Revert 109966 - Grab-bag: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « ui/aura/desktop.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/aura/desktop_host_win.h" 5 #include "ui/aura/desktop_host_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 SetMsgHandled(handled); 251 SetMsgHandled(handled);
252 return 0; 252 return 0;
253 } 253 }
254 254
255 void DesktopHostWin::OnPaint(HDC dc) { 255 void DesktopHostWin::OnPaint(HDC dc) {
256 desktop_->Draw(); 256 desktop_->Draw();
257 ValidateRect(hwnd(), NULL); 257 ValidateRect(hwnd(), NULL);
258 } 258 }
259 259
260 void DesktopHostWin::OnSize(UINT param, const CSize& size) { 260 void DesktopHostWin::OnSize(UINT param, const CSize& size) {
261 // Minimizing resizes the window to 0x0 which causes our layout to go all 261 desktop_->OnHostResized(gfx::Size(size.cx, size.cy));
262 // screwy, so we just ignore it.
263 if (param != SIZE_MINIMIZED)
264 desktop_->OnHostResized(gfx::Size(size.cx, size.cy));
265 } 262 }
266 263
267 } // namespace aura 264 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/desktop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698