| 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 void ToggleFullScreen() override; | 28 void ToggleFullScreen() override; |
| 29 bool ConfineCursorToRootWindow() override; | 29 bool ConfineCursorToRootWindow() override; |
| 30 void UnConfineCursor() override; | 30 void UnConfineCursor() override; |
| 31 void SetRootWindowTransformer( | 31 void SetRootWindowTransformer( |
| 32 scoped_ptr<RootWindowTransformer> transformer) override; | 32 scoped_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 UpdateDisplayID(int64 id1, int64 id2) override; | |
| 36 void PrepareForShutdown() override; | 35 void PrepareForShutdown() override; |
| 37 | 36 |
| 38 // aura::WindowTreehost: | 37 // aura::WindowTreehost: |
| 39 void SetBounds(const gfx::Rect& bounds) override; | 38 void SetBounds(const gfx::Rect& bounds) override; |
| 40 gfx::Transform GetRootTransform() const override; | 39 gfx::Transform GetRootTransform() const override; |
| 41 void SetRootTransform(const gfx::Transform& transform) override; | 40 void SetRootTransform(const gfx::Transform& transform) override; |
| 42 gfx::Transform GetInverseRootTransform() const override; | 41 gfx::Transform GetInverseRootTransform() const override; |
| 43 void UpdateRootWindowSize(const gfx::Size& host_size) override; | 42 void UpdateRootWindowSize(const gfx::Size& host_size) override; |
| 44 void OnCursorVisibilityChangedNative(bool show) override; | 43 void OnCursorVisibilityChangedNative(bool show) override; |
| 45 | 44 |
| 46 // aura::WindowTreeHostX11: | 45 // aura::WindowTreeHostX11: |
| 47 void OnConfigureNotify() override; | 46 void OnConfigureNotify() override; |
| 48 bool CanDispatchEvent(const ui::PlatformEvent& event) override; | 47 bool CanDispatchEvent(const ui::PlatformEvent& event) override; |
| 49 void TranslateAndDispatchLocatedEvent(ui::LocatedEvent* event) override; | 48 void TranslateAndDispatchLocatedEvent(ui::LocatedEvent* event) override; |
| 50 | 49 |
| 51 // EnvObserver overrides. | 50 // EnvObserver overrides. |
| 52 void OnWindowInitialized(aura::Window* window) override; | 51 void OnWindowInitialized(aura::Window* window) override; |
| 53 void OnHostInitialized(aura::WindowTreeHost* host) override; | 52 void OnHostInitialized(aura::WindowTreeHost* host) override; |
| 54 | 53 |
| 55 #if defined(OS_CHROMEOS) | 54 #if defined(OS_CHROMEOS) |
| 56 // 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 |
| 57 // 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. |
| 58 void SetCrOSTapPaused(bool state); | 57 void SetCrOSTapPaused(bool state); |
| 59 #endif | 58 #endif |
| 60 | 59 |
| 61 scoped_ptr<XID[]> pointer_barriers_; | 60 scoped_ptr<XID[]> pointer_barriers_; |
| 62 | 61 |
| 63 TransformerHelper transformer_helper_; | 62 TransformerHelper transformer_helper_; |
| 64 | 63 |
| 65 // The display IDs associated with this root window. | |
| 66 // In single monitor or extended mode dual monitor case, the root window | |
| 67 // is associated with one display. | |
| 68 // In mirror mode dual monitors case, the root window is associated with | |
| 69 // both displays. | |
| 70 std::pair<int64, int64> display_ids_; | |
| 71 | |
| 72 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11); | 64 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11); |
| 73 }; | 65 }; |
| 74 | 66 |
| 75 } // namespace ash | 67 } // namespace ash |
| 76 | 68 |
| 77 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ | 69 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ |
| OLD | NEW |