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_ |
oshima
2016/04/08 07:09:40
include?
| |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/host/ash_window_tree_host.h" | 9 #include "ash/host/ash_window_tree_host.h" |
10 #include "ash/host/transformer_helper.h" | 10 #include "ash/host/transformer_helper.h" |
11 #include "ui/aura/window_tree_host_platform.h" | 11 #include "ui/aura/window_tree_host_platform.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 | 14 |
15 class ASH_EXPORT AshWindowTreeHostPlatform | 15 class ASH_EXPORT AshWindowTreeHostPlatform |
16 : public AshWindowTreeHost, | 16 : public AshWindowTreeHost, |
17 public aura::WindowTreeHostPlatform { | 17 public aura::WindowTreeHostPlatform { |
18 public: | 18 public: |
19 explicit AshWindowTreeHostPlatform(const gfx::Rect& initial_bounds); | 19 explicit AshWindowTreeHostPlatform(const gfx::Rect& initial_bounds); |
20 ~AshWindowTreeHostPlatform() override; | 20 ~AshWindowTreeHostPlatform() override; |
21 | 21 |
22 protected: | 22 protected: |
23 AshWindowTreeHostPlatform(); | 23 AshWindowTreeHostPlatform(); |
24 | 24 |
25 // AshWindowTreeHost: | 25 // AshWindowTreeHost: |
26 void ToggleFullScreen() override; | 26 void ToggleFullScreen() override; |
27 bool ConfineCursorToRootWindow() override; | 27 bool ConfineCursorToRootWindow() override; |
28 void UnConfineCursor() override; | 28 void UnConfineCursor() override; |
29 void SetRootWindowTransformer( | 29 void SetRootWindowTransformer( |
30 scoped_ptr<RootWindowTransformer> transformer) override; | 30 std::unique_ptr<RootWindowTransformer> transformer) override; |
31 gfx::Insets GetHostInsets() const override; | 31 gfx::Insets GetHostInsets() const override; |
32 aura::WindowTreeHost* AsWindowTreeHost() override; | 32 aura::WindowTreeHost* AsWindowTreeHost() override; |
33 void PrepareForShutdown() override; | 33 void PrepareForShutdown() override; |
34 void SetRootTransform(const gfx::Transform& transform) override; | 34 void SetRootTransform(const gfx::Transform& transform) override; |
35 gfx::Transform GetRootTransform() const override; | 35 gfx::Transform GetRootTransform() const override; |
36 gfx::Transform GetInverseRootTransform() const override; | 36 gfx::Transform GetInverseRootTransform() const override; |
37 void UpdateRootWindowSize(const gfx::Size& host_size) override; | 37 void UpdateRootWindowSize(const gfx::Size& host_size) override; |
38 void OnCursorVisibilityChangedNative(bool show) override; | 38 void OnCursorVisibilityChangedNative(bool show) override; |
39 void SetBounds(const gfx::Rect& bounds) override; | 39 void SetBounds(const gfx::Rect& bounds) override; |
40 void DispatchEvent(ui::Event* event) override; | 40 void DispatchEvent(ui::Event* event) override; |
41 | 41 |
42 // ui::internal::InputMethodDelegate: | 42 // ui::internal::InputMethodDelegate: |
43 ui::EventDispatchDetails DispatchKeyEventPostIME( | 43 ui::EventDispatchDetails DispatchKeyEventPostIME( |
44 ui::KeyEvent* event) override; | 44 ui::KeyEvent* event) override; |
45 | 45 |
46 private: | 46 private: |
47 // Temporarily disable the tap-to-click feature. Used on CrOS. | 47 // Temporarily disable the tap-to-click feature. Used on CrOS. |
48 void SetTapToClickPaused(bool state); | 48 void SetTapToClickPaused(bool state); |
49 | 49 |
50 TransformerHelper transformer_helper_; | 50 TransformerHelper transformer_helper_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostPlatform); | 52 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostPlatform); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace ash | 55 } // namespace ash |
56 | 56 |
57 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_PLATFORM_H_ | 57 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_PLATFORM_H_ |
OLD | NEW |