| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_AURA_WINDOW_TREE_HOST_X11_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_X11_H_ |
| 6 #define UI_AURA_WINDOW_TREE_HOST_X11_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_X11_H_ |
| 7 | 7 |
| 8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // Returns true if there's an X window manager present... in most cases. Some | 83 // Returns true if there's an X window manager present... in most cases. Some |
| 84 // window managers (notably, ion3) don't implement enough of ICCCM for us to | 84 // window managers (notably, ion3) don't implement enough of ICCCM for us to |
| 85 // detect that they're there. | 85 // detect that they're there. |
| 86 bool IsWindowManagerPresent(); | 86 bool IsWindowManagerPresent(); |
| 87 | 87 |
| 88 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update | 88 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update |
| 89 // |current_cursor_|. | 89 // |current_cursor_|. |
| 90 void SetCursorInternal(gfx::NativeCursor cursor); | 90 void SetCursorInternal(gfx::NativeCursor cursor); |
| 91 | 91 |
| 92 // Translates the native mouse location into screen coordinates and and | 92 // Translates the native mouse location into screen coordinates and and |
| 93 // dispatches the event via WindowEventDispatcher. | 93 // dispatches the event to WindowTreeHostDelegate. |
| 94 void TranslateAndDispatchMouseEvent(ui::MouseEvent* event); | 94 void TranslateAndDispatchMouseEvent(ui::MouseEvent* event); |
| 95 | 95 |
| 96 // Update is_internal_display_ based on delegate_ state | 96 // Update is_internal_display_ based on delegate_ state |
| 97 void UpdateIsInternalDisplay(); | 97 void UpdateIsInternalDisplay(); |
| 98 | 98 |
| 99 // Set the CrOS touchpad "tap paused" property. It is used to temporarily | 99 // Set the CrOS touchpad "tap paused" property. It is used to temporarily |
| 100 // turn off the Tap-to-click feature when the mouse pointer is invisible. | 100 // turn off the Tap-to-click feature when the mouse pointer is invisible. |
| 101 void SetCrOSTapPaused(bool state); | 101 void SetCrOSTapPaused(bool state); |
| 102 | 102 |
| 103 // The display and the native X window hosting the root window. | 103 // The display and the native X window hosting the root window. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 namespace test { | 137 namespace test { |
| 138 | 138 |
| 139 // Set the default value of the override redirect flag used to | 139 // Set the default value of the override redirect flag used to |
| 140 // create a X window for WindowTreeHostX11. | 140 // create a X window for WindowTreeHostX11. |
| 141 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); | 141 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); |
| 142 | 142 |
| 143 } // namespace test | 143 } // namespace test |
| 144 } // namespace aura | 144 } // namespace aura |
| 145 | 145 |
| 146 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_ | 146 #endif // UI_AURA_WINDOW_TREE_HOST_X11_H_ |
| OLD | NEW |