| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_window_tree_host_platform.h" | 5 #include "ash/host/ash_window_tree_host_platform.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/host/root_window_transformer.h" | 9 #include "ash/host/root_window_transformer.h" |
| 10 #include "ash/host/transformer_helper.h" | 10 #include "ash/host/transformer_helper.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 83 } |
| 84 | 84 |
| 85 gfx::Transform AshWindowTreeHostPlatform::GetRootTransform() const { | 85 gfx::Transform AshWindowTreeHostPlatform::GetRootTransform() const { |
| 86 return transformer_helper_.GetTransform(); | 86 return transformer_helper_.GetTransform(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 gfx::Transform AshWindowTreeHostPlatform::GetInverseRootTransform() const { | 89 gfx::Transform AshWindowTreeHostPlatform::GetInverseRootTransform() const { |
| 90 return transformer_helper_.GetInverseTransform(); | 90 return transformer_helper_.GetInverseTransform(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void AshWindowTreeHostPlatform::UpdateRootWindowSize( | 93 void AshWindowTreeHostPlatform::UpdateRootWindowSizeInPixel( |
| 94 const gfx::Size& host_size) { | 94 const gfx::Size& host_size_in_pixel) { |
| 95 transformer_helper_.UpdateWindowSize(host_size); | 95 transformer_helper_.UpdateWindowSize(host_size_in_pixel); |
| 96 } | 96 } |
| 97 | 97 |
| 98 void AshWindowTreeHostPlatform::OnCursorVisibilityChangedNative(bool show) { | 98 void AshWindowTreeHostPlatform::OnCursorVisibilityChangedNative(bool show) { |
| 99 SetTapToClickPaused(!show); | 99 SetTapToClickPaused(!show); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void AshWindowTreeHostPlatform::SetBounds(const gfx::Rect& bounds) { | 102 void AshWindowTreeHostPlatform::SetBounds(const gfx::Rect& bounds) { |
| 103 WindowTreeHostPlatform::SetBounds(bounds); | 103 WindowTreeHostPlatform::SetBounds(bounds); |
| 104 ConfineCursorToRootWindow(); | 104 ConfineCursorToRootWindow(); |
| 105 } | 105 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 125 #if defined(USE_OZONE) | 125 #if defined(USE_OZONE) |
| 126 DCHECK(ui::OzonePlatform::GetInstance()->GetInputController()); | 126 DCHECK(ui::OzonePlatform::GetInstance()->GetInputController()); |
| 127 | 127 |
| 128 // Temporarily pause tap-to-click when the cursor is hidden. | 128 // Temporarily pause tap-to-click when the cursor is hidden. |
| 129 ui::OzonePlatform::GetInstance()->GetInputController()->SetTapToClickPaused( | 129 ui::OzonePlatform::GetInstance()->GetInputController()->SetTapToClickPaused( |
| 130 state); | 130 state); |
| 131 #endif | 131 #endif |
| 132 } | 132 } |
| 133 | 133 |
| 134 } // namespace ash | 134 } // namespace ash |
| OLD | NEW |