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

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

Issue 2830703003: [views-mus] Support custom cursors. (Closed)
Patch Set: fix cast_shell_linux Created 3 years, 7 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_server.cc ('k') | services/ui/ws/window_tree.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_TREE_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_TREE_H_
6 #define SERVICES_UI_WS_WINDOW_TREE_H_ 6 #define SERVICES_UI_WS_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 mojom::OrderDirection direction, 254 mojom::OrderDirection direction,
255 bool originated_change); 255 bool originated_change);
256 void ProcessWindowDeleted(ServerWindow* window, bool originated_change); 256 void ProcessWindowDeleted(ServerWindow* window, bool originated_change);
257 void ProcessWillChangeWindowVisibility(const ServerWindow* window, 257 void ProcessWillChangeWindowVisibility(const ServerWindow* window,
258 bool originated_change); 258 bool originated_change);
259 void ProcessWindowOpacityChanged(const ServerWindow* window, 259 void ProcessWindowOpacityChanged(const ServerWindow* window,
260 float old_opacity, 260 float old_opacity,
261 float new_opacity, 261 float new_opacity,
262 bool originated_change); 262 bool originated_change);
263 void ProcessCursorChanged(const ServerWindow* window, 263 void ProcessCursorChanged(const ServerWindow* window,
264 mojom::CursorType cursor_id, 264 const ui::CursorData& cursor,
265 bool originated_change); 265 bool originated_change);
266 void ProcessFocusChanged(const ServerWindow* old_focused_window, 266 void ProcessFocusChanged(const ServerWindow* old_focused_window,
267 const ServerWindow* new_focused_window); 267 const ServerWindow* new_focused_window);
268 void ProcessCaptureChanged(const ServerWindow* new_capture, 268 void ProcessCaptureChanged(const ServerWindow* new_capture,
269 const ServerWindow* old_capture, 269 const ServerWindow* old_capture,
270 bool originated_change); 270 bool originated_change);
271 void ProcessTransientWindowAdded(const ServerWindow* window, 271 void ProcessTransientWindowAdded(const ServerWindow* window,
272 const ServerWindow* transient_window, 272 const ServerWindow* transient_window,
273 bool originated_change); 273 bool originated_change);
274 void ProcessTransientWindowRemoved(const ServerWindow* window, 274 void ProcessTransientWindowRemoved(const ServerWindow* window,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink, 455 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink,
456 cc::mojom::MojoCompositorFrameSinkClientPtr client) override; 456 cc::mojom::MojoCompositorFrameSinkClientPtr client) override;
457 void Embed(Id transport_window_id, 457 void Embed(Id transport_window_id,
458 mojom::WindowTreeClientPtr client, 458 mojom::WindowTreeClientPtr client,
459 uint32_t flags, 459 uint32_t flags,
460 const EmbedCallback& callback) override; 460 const EmbedCallback& callback) override;
461 void SetFocus(uint32_t change_id, Id transport_window_id) override; 461 void SetFocus(uint32_t change_id, Id transport_window_id) override;
462 void SetCanFocus(Id transport_window_id, bool can_focus) override; 462 void SetCanFocus(Id transport_window_id, bool can_focus) override;
463 void SetEventTargetingPolicy(Id transport_window_id, 463 void SetEventTargetingPolicy(Id transport_window_id,
464 mojom::EventTargetingPolicy policy) override; 464 mojom::EventTargetingPolicy policy) override;
465 void SetPredefinedCursor(uint32_t change_id, 465 void SetCursor(uint32_t change_id,
466 Id transport_window_id, 466 Id transport_window_id,
467 ui::mojom::CursorType cursor_id) override; 467 ui::CursorData cursor) override;
468 void SetWindowTextInputState(Id transport_window_id, 468 void SetWindowTextInputState(Id transport_window_id,
469 mojo::TextInputStatePtr state) override; 469 mojo::TextInputStatePtr state) override;
470 void SetImeVisibility(Id transport_window_id, 470 void SetImeVisibility(Id transport_window_id,
471 bool visible, 471 bool visible,
472 mojo::TextInputStatePtr state) override; 472 mojo::TextInputStatePtr state) override;
473 void OnWindowInputEventAck(uint32_t event_id, 473 void OnWindowInputEventAck(uint32_t event_id,
474 mojom::EventResult result) override; 474 mojom::EventResult result) override;
475 void DeactivateWindow(Id window_id) override; 475 void DeactivateWindow(Id window_id) override;
476 void SetClientArea(Id transport_window_id, 476 void SetClientArea(Id transport_window_id,
477 const gfx::Insets& insets, 477 const gfx::Insets& insets,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 void SetDisplayRoot(const display::Display& display, 514 void SetDisplayRoot(const display::Display& display,
515 mojom::WmViewportMetricsPtr viewport_metrics, 515 mojom::WmViewportMetricsPtr viewport_metrics,
516 bool is_primary_display, 516 bool is_primary_display,
517 Id window_id, 517 Id window_id,
518 const SetDisplayRootCallback& callback) override; 518 const SetDisplayRootCallback& callback) override;
519 void WmResponse(uint32_t change_id, bool response) override; 519 void WmResponse(uint32_t change_id, bool response) override;
520 void WmSetBoundsResponse(uint32_t change_id) override; 520 void WmSetBoundsResponse(uint32_t change_id) override;
521 void WmRequestClose(Id transport_window_id) override; 521 void WmRequestClose(Id transport_window_id) override;
522 void WmSetFrameDecorationValues( 522 void WmSetFrameDecorationValues(
523 mojom::FrameDecorationValuesPtr values) override; 523 mojom::FrameDecorationValuesPtr values) override;
524 void WmSetNonClientCursor(uint32_t window_id, 524 void WmSetNonClientCursor(uint32_t window_id, ui::CursorData cursor) override;
525 mojom::CursorType cursor_id) override;
526 void OnWmCreatedTopLevelWindow(uint32_t change_id, 525 void OnWmCreatedTopLevelWindow(uint32_t change_id,
527 Id transport_window_id) override; 526 Id transport_window_id) override;
528 void OnAcceleratorAck( 527 void OnAcceleratorAck(
529 uint32_t event_id, 528 uint32_t event_id,
530 mojom::EventResult result, 529 mojom::EventResult result,
531 const std::unordered_map<std::string, std::vector<uint8_t>>& properties) 530 const std::unordered_map<std::string, std::vector<uint8_t>>& properties)
532 override; 531 override;
533 532
534 // AccessPolicyDelegate: 533 // AccessPolicyDelegate:
535 bool HasRootForAccessPolicy(const ServerWindow* window) const override; 534 bool HasRootForAccessPolicy(const ServerWindow* window) const override;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // a image move. All weak ptrs are invalidated when a drag is completed. 645 // a image move. All weak ptrs are invalidated when a drag is completed.
647 base::WeakPtrFactory<WindowTree> drag_weak_factory_; 646 base::WeakPtrFactory<WindowTree> drag_weak_factory_;
648 647
649 DISALLOW_COPY_AND_ASSIGN(WindowTree); 648 DISALLOW_COPY_AND_ASSIGN(WindowTree);
650 }; 649 };
651 650
652 } // namespace ws 651 } // namespace ws
653 } // namespace ui 652 } // namespace ui
654 653
655 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ 654 #endif // SERVICES_UI_WS_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698