OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_X11_H_ | 5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ |
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ | 6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ |
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" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 // EnvObserver overrides. | 49 // EnvObserver overrides. |
50 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; | 50 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; |
51 virtual void OnHostInitialized(aura::WindowTreeHost* host) OVERRIDE; | 51 virtual void OnHostInitialized(aura::WindowTreeHost* host) OVERRIDE; |
52 | 52 |
53 class TouchEventCalibrate; | 53 class TouchEventCalibrate; |
54 | 54 |
55 // Update is_internal_display_ based on the current state. | 55 // Update is_internal_display_ based on the current state. |
56 void UpdateIsInternalDisplay(); | 56 void UpdateIsInternalDisplay(); |
57 | 57 |
| 58 #if defined(OS_CHROMEOS) |
58 // Set the CrOS touchpad "tap paused" property. It is used to temporarily | 59 // Set the CrOS touchpad "tap paused" property. It is used to temporarily |
59 // turn off the Tap-to-click feature when the mouse pointer is invisible. | 60 // turn off the Tap-to-click feature when the mouse pointer is invisible. |
60 void SetCrOSTapPaused(bool state); | 61 void SetCrOSTapPaused(bool state); |
| 62 #endif |
61 | 63 |
62 // True if the root host resides on the internal display | 64 // True if the root host resides on the internal display |
63 bool is_internal_display_; | 65 bool is_internal_display_; |
64 | 66 |
65 scoped_ptr<XID[]> pointer_barriers_; | 67 scoped_ptr<XID[]> pointer_barriers_; |
66 | 68 |
67 scoped_ptr<TouchEventCalibrate> touch_calibrate_; | 69 scoped_ptr<TouchEventCalibrate> touch_calibrate_; |
68 | 70 |
69 TransformerHelper transformer_helper_; | 71 TransformerHelper transformer_helper_; |
70 | 72 |
71 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11); | 73 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11); |
72 }; | 74 }; |
73 | 75 |
74 } // namespace ash | 76 } // namespace ash |
75 | 77 |
76 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ | 78 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ |
OLD | NEW |