OLD | NEW |
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 Loading... |
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 |
OLD | NEW |