| 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_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/views/widget/desktop_native_widget_aura.h" | 8 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| 11 | 11 |
| 12 DesktopScreenPositionClient::DesktopScreenPositionClient() { | 12 DesktopScreenPositionClient::DesktopScreenPositionClient() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 DesktopScreenPositionClient::~DesktopScreenPositionClient() { | 15 DesktopScreenPositionClient::~DesktopScreenPositionClient() { |
| 16 } | 16 } |
| 17 | 17 |
| 18 void DesktopScreenPositionClient::ConvertPointToScreen( | 18 void DesktopScreenPositionClient::ConvertPointToScreen( |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 DesktopNativeWidgetAura::ForWindow(window); | 61 DesktopNativeWidgetAura::ForWindow(window); |
| 62 if (desktop_native_widget) { | 62 if (desktop_native_widget) { |
| 63 root->SetHostBounds(bounds); | 63 root->SetHostBounds(bounds); |
| 64 // Setting bounds of root resizes |window|. | 64 // Setting bounds of root resizes |window|. |
| 65 } else { | 65 } else { |
| 66 window->SetBounds(bounds); | 66 window->SetBounds(bounds); |
| 67 } | 67 } |
| 68 } | 68 } |
| 69 | 69 |
| 70 } // namespace views | 70 } // namespace views |
| OLD | NEW |