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 18 matching lines...) Expand all Loading... |
29 bool ConfineCursorToRootWindow() override; | 29 bool ConfineCursorToRootWindow() override; |
30 void UnConfineCursor() override; | 30 void UnConfineCursor() override; |
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 UpdateRootWindowSizeInPixels( |
| 40 const gfx::Size& host_size_in_pixels) override; |
40 void OnCursorVisibilityChangedNative(bool show) override; | 41 void OnCursorVisibilityChangedNative(bool show) override; |
41 void SetBoundsInPixels(const gfx::Rect& bounds) override; | 42 void SetBoundsInPixels(const gfx::Rect& bounds) override; |
42 void DispatchEvent(ui::Event* event) override; | 43 void DispatchEvent(ui::Event* event) override; |
43 | 44 |
44 // ui::internal::InputMethodDelegate: | 45 // ui::internal::InputMethodDelegate: |
45 ui::EventDispatchDetails DispatchKeyEventPostIME( | 46 ui::EventDispatchDetails DispatchKeyEventPostIME( |
46 ui::KeyEvent* event) override; | 47 ui::KeyEvent* event) override; |
47 | 48 |
48 private: | 49 private: |
49 // Temporarily disable the tap-to-click feature. Used on CrOS. | 50 // Temporarily disable the tap-to-click feature. Used on CrOS. |
50 void SetTapToClickPaused(bool state); | 51 void SetTapToClickPaused(bool state); |
51 | 52 |
52 TransformerHelper transformer_helper_; | 53 TransformerHelper transformer_helper_; |
53 | 54 |
54 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostPlatform); | 55 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostPlatform); |
55 }; | 56 }; |
56 | 57 |
57 } // namespace ash | 58 } // namespace ash |
58 | 59 |
59 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_PLATFORM_H_ | 60 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_PLATFORM_H_ |
OLD | NEW |