| 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 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_PLATFORM_H_ | 5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_PLATFORM_H_ |
| 6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_PLATFORM_H_ | 6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_PLATFORM_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 void SetRootWindowTransformer( | 31 void SetRootWindowTransformer( |
| 32 std::unique_ptr<RootWindowTransformer> transformer) override; | 32 std::unique_ptr<RootWindowTransformer> transformer) override; |
| 33 gfx::Insets GetHostInsets() const override; | 33 gfx::Insets GetHostInsets() const override; |
| 34 aura::WindowTreeHost* AsWindowTreeHost() override; | 34 aura::WindowTreeHost* AsWindowTreeHost() override; |
| 35 void PrepareForShutdown() override; | 35 void PrepareForShutdown() override; |
| 36 void SetRootTransform(const gfx::Transform& transform) override; | 36 void SetRootTransform(const gfx::Transform& transform) override; |
| 37 gfx::Transform GetRootTransform() const override; | 37 gfx::Transform GetRootTransform() const override; |
| 38 gfx::Transform GetInverseRootTransform() const override; | 38 gfx::Transform GetInverseRootTransform() const override; |
| 39 void UpdateRootWindowSize(const gfx::Size& host_size) override; | 39 void UpdateRootWindowSize(const gfx::Size& host_size) override; |
| 40 void OnCursorVisibilityChangedNative(bool show) override; | 40 void OnCursorVisibilityChangedNative(bool show) override; |
| 41 void SetBounds(const gfx::Rect& bounds) override; | 41 void SetBoundsInPixels(const gfx::Rect& bounds) override; |
| 42 void DispatchEvent(ui::Event* event) override; | 42 void DispatchEvent(ui::Event* event) override; |
| 43 | 43 |
| 44 // ui::internal::InputMethodDelegate: | 44 // ui::internal::InputMethodDelegate: |
| 45 ui::EventDispatchDetails DispatchKeyEventPostIME( | 45 ui::EventDispatchDetails DispatchKeyEventPostIME( |
| 46 ui::KeyEvent* event) override; | 46 ui::KeyEvent* event) override; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 // Temporarily disable the tap-to-click feature. Used on CrOS. | 49 // Temporarily disable the tap-to-click feature. Used on CrOS. |
| 50 void SetTapToClickPaused(bool state); | 50 void SetTapToClickPaused(bool state); |
| 51 | 51 |
| 52 TransformerHelper transformer_helper_; | 52 TransformerHelper transformer_helper_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostPlatform); | 54 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostPlatform); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace ash | 57 } // namespace ash |
| 58 | 58 |
| 59 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_PLATFORM_H_ | 59 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_PLATFORM_H_ |
| OLD | NEW |