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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_screen_position_client.cc

Issue 128753002: Remove SetHostSize/Bounds from RootWindow in favor of just calling SetBounds() on host() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: weirdness Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
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/views/widget/desktop_aura/desktop_screen_position_client.h" 5 #include "ui/views/widget/desktop_aura/desktop_screen_position_client.h"
6 6
7 #include "ui/aura/root_window.h" 7 #include "ui/aura/root_window.h"
8 #include "ui/gfx/display.h" 8 #include "ui/gfx/display.h"
9 #include "ui/gfx/point_conversions.h" 9 #include "ui/gfx/point_conversions.h"
10 #include "ui/gfx/screen.h" 10 #include "ui/gfx/screen.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 gfx::Point host_origin = GetOrigin(root); 83 gfx::Point host_origin = GetOrigin(root);
84 origin.Offset(-host_origin.x(), -host_origin.y()); 84 origin.Offset(-host_origin.x(), -host_origin.y());
85 window->SetBounds(gfx::Rect(origin, bounds.size())); 85 window->SetBounds(gfx::Rect(origin, bounds.size()));
86 return; 86 return;
87 } 87 }
88 88
89 DesktopNativeWidgetAura* desktop_native_widget = 89 DesktopNativeWidgetAura* desktop_native_widget =
90 DesktopNativeWidgetAura::ForWindow(window); 90 DesktopNativeWidgetAura::ForWindow(window);
91 if (desktop_native_widget) { 91 if (desktop_native_widget) {
92 root->GetDispatcher()->SetHostBounds(bounds); 92 root->GetDispatcher()->host()->SetBounds(bounds);
93 // Setting bounds of root resizes |window|. 93 // Setting bounds of root resizes |window|.
94 } else { 94 } else {
95 window->SetBounds(bounds); 95 window->SetBounds(bounds);
96 } 96 }
97 } 97 }
98 98
99 } // namespace views 99 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/corewm/desktop_capture_controller_unittest.cc ('k') | ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698