| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 99 // Copies and returns |snapshot_bounds| from |xwindow_|. Helper method for |
| 100 // CopyAreaToSkCanvas() and GrabSnapshot(). | 100 // CopyAreaToSkCanvas() and GrabSnapshot(). |
| 101 scoped_ptr<ui::XScopedImage> GetXImage(const gfx::Rect& snapshot_bounds); | 101 scoped_ptr<ui::XScopedImage> GetXImage(const gfx::Rect& snapshot_bounds); |
| 102 | 102 |
| 103 // Update is_internal_display_ based on delegate_ state | 103 // Update is_internal_display_ based on delegate_ state |
| 104 void UpdateIsInternalDisplay(); | 104 void UpdateIsInternalDisplay(); |
| 105 | 105 |
| 106 // 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. |
| 108 void SetCrOSTapPaused(bool state); |
| 109 |
| 106 RootWindowHostDelegate* delegate_; | 110 RootWindowHostDelegate* delegate_; |
| 107 | 111 |
| 108 // The display and the native X window hosting the root window. | 112 // The display and the native X window hosting the root window. |
| 109 Display* xdisplay_; | 113 Display* xdisplay_; |
| 110 ::Window xwindow_; | 114 ::Window xwindow_; |
| 111 | 115 |
| 112 // The native root window. | 116 // The native root window. |
| 113 ::Window x_root_window_; | 117 ::Window x_root_window_; |
| 114 | 118 |
| 115 // Current Aura cursor. | 119 // Current Aura cursor. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 namespace test { | 151 namespace test { |
| 148 | 152 |
| 149 // Set the default value of the override redirect flag used to | 153 // Set the default value of the override redirect flag used to |
| 150 // create a X window for RootWindowHostX11. | 154 // create a X window for RootWindowHostX11. |
| 151 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); | 155 AURA_EXPORT void SetUseOverrideRedirectWindowByDefault(bool override_redirect); |
| 152 | 156 |
| 153 } // namespace test | 157 } // namespace test |
| 154 } // namespace aura | 158 } // namespace aura |
| 155 | 159 |
| 156 #endif // UI_AURA_ROOT_WINDOW_HOST_X11_H_ | 160 #endif // UI_AURA_ROOT_WINDOW_HOST_X11_H_ |
| OLD | NEW |