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_ROOT_WINDOW_HOST_X11_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_X11_H_ |
6 #define UI_AURA_ROOT_WINDOW_HOST_X11_H_ | 6 #define UI_AURA_ROOT_WINDOW_HOST_X11_H_ |
7 | 7 |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 bool IsWindowManagerPresent(); | 89 bool IsWindowManagerPresent(); |
90 | 90 |
91 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update | 91 // Sets the cursor on |xwindow_| to |cursor|. Does not check or update |
92 // |current_cursor_|. | 92 // |current_cursor_|. |
93 void SetCursorInternal(gfx::NativeCursor cursor); | 93 void SetCursorInternal(gfx::NativeCursor cursor); |
94 | 94 |
95 // Translates the native mouse location into screen coordinates and and | 95 // Translates the native mouse location into screen coordinates and and |
96 // dispatches the event to RootWindowHostDelegate. | 96 // dispatches the event to RootWindowHostDelegate. |
97 void TranslateAndDispatchMouseEvent(ui::MouseEvent* event); | 97 void TranslateAndDispatchMouseEvent(ui::MouseEvent* event); |
98 | 98 |
99 // Copies and returns |snapshot_bounds| from |xwindow_|. Helper method for | |
100 // CopyAreaToSkCanvas() and GrabSnapshot(). | |
101 scoped_ptr<ui::XScopedImage> GetXImage(const gfx::Rect& snapshot_bounds); | |
102 | |
103 // Update is_internal_display_ based on delegate_ state | 99 // Update is_internal_display_ based on delegate_ state |
104 void UpdateIsInternalDisplay(); | 100 void UpdateIsInternalDisplay(); |
105 | 101 |
106 // Set the CrOS touchpad "tap paused" property. It is used to temporarily | 102 // Set the CrOS touchpad "tap paused" property. It is used to temporarily |
107 // turn off the Tap-to-click feature when the mouse pointer is invisible. | 103 // turn off the Tap-to-click feature when the mouse pointer is invisible. |
108 void SetCrOSTapPaused(bool state); | 104 void SetCrOSTapPaused(bool state); |
109 | 105 |
110 RootWindowHostDelegate* delegate_; | 106 RootWindowHostDelegate* delegate_; |
111 | 107 |
112 // The display and the native X window hosting the root window. | 108 // The display and the native X window hosting the root window. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 namespace test { | 147 namespace test { |
152 | 148 |
153 // Set the default value of the override redirect flag used to | 149 // Set the default value of the override redirect flag used to |
154 // create a X window for RootWindowHostX11. | 150 // create a X window for RootWindowHostX11. |
155 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); | 151 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); |
156 | 152 |
157 } // namespace test | 153 } // namespace test |
158 } // namespace aura | 154 } // namespace aura |
159 | 155 |
160 #endif // UI_AURA_ROOT_WINDOW_HOST_X11_H_ | 156 #endif // UI_AURA_ROOT_WINDOW_HOST_X11_H_ |
OLD | NEW |