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 |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 bool AshRemoteWindowTreeHostWin::ConfineCursorToRootWindow() { return false; } | 41 bool AshRemoteWindowTreeHostWin::ConfineCursorToRootWindow() { return false; } |
42 | 42 |
43 void AshRemoteWindowTreeHostWin::UnConfineCursor() {} | 43 void AshRemoteWindowTreeHostWin::UnConfineCursor() {} |
44 | 44 |
45 void AshRemoteWindowTreeHostWin::SetRootWindowTransformer( | 45 void AshRemoteWindowTreeHostWin::SetRootWindowTransformer( |
46 scoped_ptr<RootWindowTransformer> transformer) { | 46 scoped_ptr<RootWindowTransformer> transformer) { |
47 transformer_helper_.SetRootWindowTransformer(transformer.Pass()); | 47 transformer_helper_.SetRootWindowTransformer(transformer.Pass()); |
48 } | 48 } |
49 | 49 |
| 50 gfx::Insets AshRemoteWindowTreeHostWin::GetHostInsets() const { |
| 51 return gfx::Insets(); |
| 52 } |
| 53 |
50 aura::WindowTreeHost* AshRemoteWindowTreeHostWin::AsWindowTreeHost() { | 54 aura::WindowTreeHost* AshRemoteWindowTreeHostWin::AsWindowTreeHost() { |
51 return this; | 55 return this; |
52 } | 56 } |
53 | 57 |
54 gfx::Transform AshRemoteWindowTreeHostWin::GetRootTransform() const { | 58 gfx::Transform AshRemoteWindowTreeHostWin::GetRootTransform() const { |
55 return transformer_helper_.GetTransform(); | 59 return transformer_helper_.GetTransform(); |
56 } | 60 } |
57 | 61 |
58 void AshRemoteWindowTreeHostWin::SetRootTransform( | 62 void AshRemoteWindowTreeHostWin::SetRootTransform( |
59 const gfx::Transform& transform) { | 63 const gfx::Transform& transform) { |
60 transformer_helper_.SetTransform(transform); | 64 transformer_helper_.SetTransform(transform); |
61 } | 65 } |
62 | 66 |
63 gfx::Transform AshRemoteWindowTreeHostWin::GetInverseRootTransform() const { | 67 gfx::Transform AshRemoteWindowTreeHostWin::GetInverseRootTransform() const { |
64 return transformer_helper_.GetInverseTransform(); | 68 return transformer_helper_.GetInverseTransform(); |
65 } | 69 } |
66 | 70 |
67 void AshRemoteWindowTreeHostWin::UpdateRootWindowSize( | 71 void AshRemoteWindowTreeHostWin::UpdateRootWindowSize( |
68 const gfx::Size& host_size) { | 72 const gfx::Size& host_size) { |
69 transformer_helper_.UpdateWindowSize(host_size); | 73 transformer_helper_.UpdateWindowSize(host_size); |
70 } | 74 } |
71 | 75 |
72 } // namespace ash | 76 } // namespace ash |
OLD | NEW |