Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: ui/ozone/platform/dri/dri_cursor.h

Issue 872093002: [Ozone-DRI] Check the host_id when resetting the cursor IPC callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/ozone/platform/dri/dri_cursor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/dri/dri_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698