| 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 UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ | 6 #define UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 // The window under the cursor. | 98 // The window under the cursor. |
| 99 gfx::AcceleratedWidget window; | 99 gfx::AcceleratedWidget window; |
| 100 | 100 |
| 101 // The location of the cursor within the window. | 101 // The location of the cursor within the window. |
| 102 gfx::PointF location; | 102 gfx::PointF location; |
| 103 | 103 |
| 104 // The bounds of the display under the cursor. | 104 // The bounds of the display under the cursor. |
| 105 gfx::Rect bounds; | 105 gfx::Rect bounds; |
| 106 | 106 |
| 107 int host_id; |
| 108 |
| 107 // Callback for IPC updates. | 109 // Callback for IPC updates. |
| 108 base::Callback<void(IPC::Message*)> send_callback; | 110 base::Callback<void(IPC::Message*)> send_callback; |
| 109 scoped_refptr<base::SingleThreadTaskRunner> send_runner; | 111 scoped_refptr<base::SingleThreadTaskRunner> send_runner; |
| 110 | 112 |
| 111 // The mutex synchronizing this object. | 113 // The mutex synchronizing this object. |
| 112 base::Lock lock; | 114 base::Lock lock; |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 CursorState state_; | 117 CursorState state_; |
| 116 }; | 118 }; |
| 117 | 119 |
| 118 } // namespace ui | 120 } // namespace ui |
| 119 | 121 |
| 120 #endif // UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ | 122 #endif // UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ |
| OLD | NEW |