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/window_event_dispatcher.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" |
11 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" | 11 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
12 | 12 |
13 namespace views { | 13 namespace views { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 gfx::Point GetOrigin(const aura::Window* root_window) { | 17 gfx::Point GetOrigin(const aura::Window* root_window) { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 desktop_native_widget->GetNativeView() == window) { | 92 desktop_native_widget->GetNativeView() == window) { |
93 // |window| is the content_window. | 93 // |window| is the content_window. |
94 // Setting bounds of root resizes |window|. | 94 // Setting bounds of root resizes |window|. |
95 root->GetDispatcher()->host()->SetBounds(bounds); | 95 root->GetDispatcher()->host()->SetBounds(bounds); |
96 } else { | 96 } else { |
97 window->SetBounds(bounds); | 97 window->SetBounds(bounds); |
98 } | 98 } |
99 } | 99 } |
100 | 100 |
101 } // namespace views | 101 } // namespace views |
OLD | NEW |