| 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 15 matching lines...) Expand all Loading... |
| 26 namespace ash { | 26 namespace ash { |
| 27 | 27 |
| 28 AshWindowTreeHostPlatform::AshWindowTreeHostPlatform( | 28 AshWindowTreeHostPlatform::AshWindowTreeHostPlatform( |
| 29 const gfx::Rect& initial_bounds) | 29 const gfx::Rect& initial_bounds) |
| 30 : aura::WindowTreeHostPlatform(initial_bounds), transformer_helper_(this) { | 30 : aura::WindowTreeHostPlatform(initial_bounds), transformer_helper_(this) { |
| 31 transformer_helper_.Init(); | 31 transformer_helper_.Init(); |
| 32 } | 32 } |
| 33 | 33 |
| 34 AshWindowTreeHostPlatform::AshWindowTreeHostPlatform() | 34 AshWindowTreeHostPlatform::AshWindowTreeHostPlatform() |
| 35 : transformer_helper_(this) { | 35 : transformer_helper_(this) { |
| 36 CreateCompositor(); |
| 36 transformer_helper_.Init(); | 37 transformer_helper_.Init(); |
| 37 } | 38 } |
| 38 | 39 |
| 39 AshWindowTreeHostPlatform::~AshWindowTreeHostPlatform() {} | 40 AshWindowTreeHostPlatform::~AshWindowTreeHostPlatform() {} |
| 40 | 41 |
| 41 void AshWindowTreeHostPlatform::ToggleFullScreen() { | 42 void AshWindowTreeHostPlatform::ToggleFullScreen() { |
| 42 NOTIMPLEMENTED(); | 43 NOTIMPLEMENTED(); |
| 43 } | 44 } |
| 44 | 45 |
| 45 bool AshWindowTreeHostPlatform::ConfineCursorToRootWindow() { | 46 bool AshWindowTreeHostPlatform::ConfineCursorToRootWindow() { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 #if defined(USE_OZONE) | 125 #if defined(USE_OZONE) |
| 125 DCHECK(ui::OzonePlatform::GetInstance()->GetInputController()); | 126 DCHECK(ui::OzonePlatform::GetInstance()->GetInputController()); |
| 126 | 127 |
| 127 // Temporarily pause tap-to-click when the cursor is hidden. | 128 // Temporarily pause tap-to-click when the cursor is hidden. |
| 128 ui::OzonePlatform::GetInstance()->GetInputController()->SetTapToClickPaused( | 129 ui::OzonePlatform::GetInstance()->GetInputController()->SetTapToClickPaused( |
| 129 state); | 130 state); |
| 130 #endif | 131 #endif |
| 131 } | 132 } |
| 132 | 133 |
| 133 } // namespace ash | 134 } // namespace ash |
| OLD | NEW |