| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 // AshWindowTreeHost: | 27 // AshWindowTreeHost: |
| 28 virtual void ToggleFullScreen() OVERRIDE; | 28 virtual void ToggleFullScreen() OVERRIDE; |
| 29 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 29 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
| 30 virtual void UnConfineCursor() OVERRIDE; | 30 virtual void UnConfineCursor() OVERRIDE; |
| 31 virtual void SetRootWindowTransformer( | 31 virtual void SetRootWindowTransformer( |
| 32 scoped_ptr<RootWindowTransformer> transformer) OVERRIDE; | 32 scoped_ptr<RootWindowTransformer> transformer) OVERRIDE; |
| 33 virtual gfx::Insets GetHostInsets() const OVERRIDE; | 33 virtual gfx::Insets GetHostInsets() const OVERRIDE; |
| 34 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE; | 34 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE; |
| 35 virtual void UpdateDisplayID(int64 id1, int64 id2) OVERRIDE; |
| 35 | 36 |
| 36 // aura::WindowTreehost: | 37 // aura::WindowTreehost: |
| 37 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 38 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 38 virtual gfx::Transform GetRootTransform() const OVERRIDE; | 39 virtual gfx::Transform GetRootTransform() const OVERRIDE; |
| 39 virtual void SetRootTransform(const gfx::Transform& transform) OVERRIDE; | 40 virtual void SetRootTransform(const gfx::Transform& transform) OVERRIDE; |
| 40 virtual gfx::Transform GetInverseRootTransform() const OVERRIDE; | 41 virtual gfx::Transform GetInverseRootTransform() const OVERRIDE; |
| 41 virtual void UpdateRootWindowSize(const gfx::Size& host_size) OVERRIDE; | 42 virtual void UpdateRootWindowSize(const gfx::Size& host_size) OVERRIDE; |
| 42 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; | 43 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
| 43 | 44 |
| 44 // aura::WindowTreeHostX11: | 45 // aura::WindowTreeHostX11: |
| 45 virtual void OnConfigureNotify() OVERRIDE; | 46 virtual void OnConfigureNotify() OVERRIDE; |
| 47 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) OVERRIDE; |
| 46 virtual void TranslateAndDispatchLocatedEvent(ui::LocatedEvent* event) | 48 virtual void TranslateAndDispatchLocatedEvent(ui::LocatedEvent* event) |
| 47 OVERRIDE; | 49 OVERRIDE; |
| 48 | 50 |
| 49 // EnvObserver overrides. | 51 // EnvObserver overrides. |
| 50 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; | 52 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; |
| 51 virtual void OnHostInitialized(aura::WindowTreeHost* host) OVERRIDE; | 53 virtual void OnHostInitialized(aura::WindowTreeHost* host) OVERRIDE; |
| 52 | 54 |
| 53 class TouchEventCalibrate; | |
| 54 | |
| 55 // Update is_internal_display_ based on the current state. | |
| 56 void UpdateIsInternalDisplay(); | |
| 57 | |
| 58 // Set the CrOS touchpad "tap paused" property. It is used to temporarily | 55 // 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. | 56 // turn off the Tap-to-click feature when the mouse pointer is invisible. |
| 60 void SetCrOSTapPaused(bool state); | 57 void SetCrOSTapPaused(bool state); |
| 61 | 58 |
| 62 // True if the root host resides on the internal display | |
| 63 bool is_internal_display_; | |
| 64 | |
| 65 scoped_ptr<XID[]> pointer_barriers_; | 59 scoped_ptr<XID[]> pointer_barriers_; |
| 66 | 60 |
| 67 scoped_ptr<TouchEventCalibrate> touch_calibrate_; | 61 TransformerHelper transformer_helper_; |
| 68 | 62 |
| 69 TransformerHelper transformer_helper_; | 63 // The display IDs associated with this root window. |
| 64 // In single monitor or extended mode dual monitor case, the root window |
| 65 // is associated with one display. |
| 66 // In mirror mode dual monitors case, the root window is associated with |
| 67 // both displays. |
| 68 std::pair<int64, int64> display_ids_; |
| 70 | 69 |
| 71 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11); | 70 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11); |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace ash | 73 } // namespace ash |
| 75 | 74 |
| 76 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ | 75 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ |
| OLD | NEW |