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

Side by Side Diff: services/ui/ws/window_server.h

Issue 2378883002: mus ws: Consistently use mojom::Cursor instead of int32_t. (Closed)
Patch Set: Created 4 years, 2 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 | « services/ui/ws/window_manager_state.cc ('k') | services/ui/ws/window_server.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 SERVICES_UI_WS_WINDOW_SERVER_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_H_
6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ 6 #define SERVICES_UI_WS_WINDOW_SERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 const ServerWindow* new_parent, 186 const ServerWindow* new_parent,
187 const ServerWindow* old_parent); 187 const ServerWindow* old_parent);
188 void ProcessWindowHierarchyChanged(const ServerWindow* window, 188 void ProcessWindowHierarchyChanged(const ServerWindow* window,
189 const ServerWindow* new_parent, 189 const ServerWindow* new_parent,
190 const ServerWindow* old_parent); 190 const ServerWindow* old_parent);
191 void ProcessWindowReorder(const ServerWindow* window, 191 void ProcessWindowReorder(const ServerWindow* window,
192 const ServerWindow* relative_window, 192 const ServerWindow* relative_window,
193 const mojom::OrderDirection direction); 193 const mojom::OrderDirection direction);
194 void ProcessWindowDeleted(ServerWindow* window); 194 void ProcessWindowDeleted(ServerWindow* window);
195 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, 195 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window,
196 int32_t cursor_id); 196 mojom::Cursor cursor_id);
197 197
198 // Sends an |event| to all WindowTrees belonging to |user_id| that might be 198 // Sends an |event| to all WindowTrees belonging to |user_id| that might be
199 // observing events. Skips |ignore_tree| if it is non-null. |target_window| is 199 // observing events. Skips |ignore_tree| if it is non-null. |target_window| is
200 // the target of the event. 200 // the target of the event.
201 void SendToPointerWatchers(const ui::Event& event, 201 void SendToPointerWatchers(const ui::Event& event,
202 const UserId& user_id, 202 const UserId& user_id,
203 ServerWindow* target_window, 203 ServerWindow* target_window,
204 WindowTree* ignore_tree); 204 WindowTree* ignore_tree);
205 205
206 // Sets a callback to be called whenever a ServerWindow is scheduled for 206 // Sets a callback to be called whenever a ServerWindow is scheduled for
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 void OnWillChangeWindowVisibility(ServerWindow* window) override; 313 void OnWillChangeWindowVisibility(ServerWindow* window) override;
314 void OnWindowVisibilityChanged(ServerWindow* window) override; 314 void OnWindowVisibilityChanged(ServerWindow* window) override;
315 void OnWindowOpacityChanged(ServerWindow* window, 315 void OnWindowOpacityChanged(ServerWindow* window,
316 float old_opacity, 316 float old_opacity,
317 float new_opacity) override; 317 float new_opacity) override;
318 void OnWindowSharedPropertyChanged( 318 void OnWindowSharedPropertyChanged(
319 ServerWindow* window, 319 ServerWindow* window,
320 const std::string& name, 320 const std::string& name,
321 const std::vector<uint8_t>* new_data) override; 321 const std::vector<uint8_t>* new_data) override;
322 void OnWindowPredefinedCursorChanged(ServerWindow* window, 322 void OnWindowPredefinedCursorChanged(ServerWindow* window,
323 int32_t cursor_id) override; 323 mojom::Cursor cursor_id) override;
324 void OnWindowNonClientCursorChanged(ServerWindow* window, 324 void OnWindowNonClientCursorChanged(ServerWindow* window,
325 int32_t cursor_id) override; 325 mojom::Cursor cursor_id) override;
326 void OnWindowTextInputStateChanged(ServerWindow* window, 326 void OnWindowTextInputStateChanged(ServerWindow* window,
327 const ui::TextInputState& state) override; 327 const ui::TextInputState& state) override;
328 void OnTransientWindowAdded(ServerWindow* window, 328 void OnTransientWindowAdded(ServerWindow* window,
329 ServerWindow* transient_child) override; 329 ServerWindow* transient_child) override;
330 void OnTransientWindowRemoved(ServerWindow* window, 330 void OnTransientWindowRemoved(ServerWindow* window,
331 ServerWindow* transient_child) override; 331 ServerWindow* transient_child) override;
332 332
333 // GpuServiceProxyDelegate: 333 // GpuServiceProxyDelegate:
334 void OnGpuChannelEstablished( 334 void OnGpuChannelEstablished(
335 scoped_refptr<gpu::GpuChannelHost> gpu_channel) override; 335 scoped_refptr<gpu::GpuChannelHost> gpu_channel) override;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 380
381 WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_; 381 WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_;
382 382
383 DISALLOW_COPY_AND_ASSIGN(WindowServer); 383 DISALLOW_COPY_AND_ASSIGN(WindowServer);
384 }; 384 };
385 385
386 } // namespace ws 386 } // namespace ws
387 } // namespace ui 387 } // namespace ui
388 388
389 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ 389 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_manager_state.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698