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

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

Issue 11417121: Undo all existing overscan settings before updating to a new overscan settings (2nd) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disbled the broken test Created 8 years 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 | « ash/display/display_manager_unittest.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/root_window_host_win.h" 5 #include "ui/aura/root_window_host_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "ui/aura/client/capture_client.h" 12 #include "ui/aura/client/capture_client.h"
13 #include "ui/aura/root_window.h" 13 #include "ui/aura/root_window.h"
14 #include "ui/base/cursor/cursor_loader_win.h" 14 #include "ui/base/cursor/cursor_loader_win.h"
15 #include "ui/base/events/event.h" 15 #include "ui/base/events/event.h"
16 #include "ui/base/view_prop.h" 16 #include "ui/base/view_prop.h"
17 #include "ui/gfx/screen.h"
oshima 2012/11/28 00:27:21 revert?
Jun Mukai 2012/11/28 00:29:49 thanks for good catch. removed.
17 18
18 using std::max; 19 using std::max;
19 using std::min; 20 using std::min;
20 21
21 namespace aura { 22 namespace aura {
22 23
23 // static 24 // static
24 RootWindowHost* RootWindowHost::Create(const gfx::Rect& bounds) { 25 RootWindowHost* RootWindowHost::Create(const gfx::Rect& bounds) {
25 return new RootWindowHostWin(bounds); 26 return new RootWindowHostWin(bounds);
26 } 27 }
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 276 }
276 277
277 void RootWindowHostWin::OnSize(UINT param, const CSize& size) { 278 void RootWindowHostWin::OnSize(UINT param, const CSize& size) {
278 // Minimizing resizes the window to 0x0 which causes our layout to go all 279 // Minimizing resizes the window to 0x0 which causes our layout to go all
279 // screwy, so we just ignore it. 280 // screwy, so we just ignore it.
280 if (param != SIZE_MINIMIZED) 281 if (param != SIZE_MINIMIZED)
281 delegate_->OnHostResized(gfx::Size(size.cx, size.cy)); 282 delegate_->OnHostResized(gfx::Size(size.cx, size.cy));
282 } 283 }
283 284
284 } // namespace aura 285 } // namespace aura
OLDNEW
« no previous file with comments | « ash/display/display_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698