| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ash/host/ash_remote_window_tree_host_win.h" | 5 #include "ash/host/ash_remote_window_tree_host_win.h" |
| 6 | 6 |
| 7 #include "ash/host/root_window_transformer.h" | 7 #include "ash/host/root_window_transformer.h" |
| 8 #include "ui/gfx/geometry/insets.h" | 8 #include "ui/gfx/geometry/insets.h" |
| 9 #include "ui/gfx/transform.h" | 9 #include "ui/gfx/transform.h" |
| 10 | 10 |
| 11 namespace ash { | 11 namespace ash { |
| 12 | 12 |
| 13 AshRemoteWindowTreeHostWin::AshRemoteWindowTreeHostWin(HWND remote_hwnd) | 13 AshRemoteWindowTreeHostWin::AshRemoteWindowTreeHostWin( |
| 14 : aura::RemoteWindowTreeHostWin(), | 14 HWND remote_hwnd, |
| 15 ui::ContextFactory* context_factory) |
| 16 : aura::RemoteWindowTreeHostWin(context_factory), |
| 15 transformer_helper_(this) { | 17 transformer_helper_(this) { |
| 16 SetRemoteWindowHandle(remote_hwnd); | 18 SetRemoteWindowHandle(remote_hwnd); |
| 17 } | 19 } |
| 18 | 20 |
| 19 AshRemoteWindowTreeHostWin::~AshRemoteWindowTreeHostWin() {} | 21 AshRemoteWindowTreeHostWin::~AshRemoteWindowTreeHostWin() {} |
| 20 | 22 |
| 21 void AshRemoteWindowTreeHostWin::ToggleFullScreen() {} | 23 void AshRemoteWindowTreeHostWin::ToggleFullScreen() {} |
| 22 | 24 |
| 23 bool AshRemoteWindowTreeHostWin::ConfineCursorToRootWindow() { return false; } | 25 bool AshRemoteWindowTreeHostWin::ConfineCursorToRootWindow() { return false; } |
| 24 | 26 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 49 gfx::Transform AshRemoteWindowTreeHostWin::GetInverseRootTransform() const { | 51 gfx::Transform AshRemoteWindowTreeHostWin::GetInverseRootTransform() const { |
| 50 return transformer_helper_.GetInverseTransform(); | 52 return transformer_helper_.GetInverseTransform(); |
| 51 } | 53 } |
| 52 | 54 |
| 53 void AshRemoteWindowTreeHostWin::UpdateRootWindowSize( | 55 void AshRemoteWindowTreeHostWin::UpdateRootWindowSize( |
| 54 const gfx::Size& host_size) { | 56 const gfx::Size& host_size) { |
| 55 transformer_helper_.UpdateWindowSize(host_size); | 57 transformer_helper_.UpdateWindowSize(host_size); |
| 56 } | 58 } |
| 57 | 59 |
| 58 } // namespace ash | 60 } // namespace ash |
| OLD | NEW |