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

Side by Side Diff: ui/aura/mus/window_tree_client.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 | « ui/aura/mus/window_port_mus.cc ('k') | ui/aura/mus/window_tree_client.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_AURA_MUS_WINDOW_TREE_CLIENT_H_ 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 123 }
124 FocusSynchronizer* focus_synchronizer() { return focus_synchronizer_.get(); } 124 FocusSynchronizer* focus_synchronizer() { return focus_synchronizer_.get(); }
125 125
126 bool connected() const { return tree_ != nullptr; } 126 bool connected() const { return tree_ != nullptr; }
127 ClientSpecificId client_id() const { return client_id_; } 127 ClientSpecificId client_id() const { return client_id_; }
128 128
129 void SetCanFocus(Window* window, bool can_focus); 129 void SetCanFocus(Window* window, bool can_focus);
130 void SetCanAcceptDrops(WindowMus* window, bool can_accept_drops); 130 void SetCanAcceptDrops(WindowMus* window, bool can_accept_drops);
131 void SetEventTargetingPolicy(WindowMus* window, 131 void SetEventTargetingPolicy(WindowMus* window,
132 ui::mojom::EventTargetingPolicy policy); 132 ui::mojom::EventTargetingPolicy policy);
133 void SetPredefinedCursor(WindowMus* window, 133 void SetCursor(WindowMus* window,
134 ui::mojom::CursorType old_cursor, 134 const ui::CursorData& old_cursor,
135 ui::mojom::CursorType new_cursor); 135 const ui::CursorData& new_cursor);
136 void SetWindowTextInputState(WindowMus* window, 136 void SetWindowTextInputState(WindowMus* window,
137 mojo::TextInputStatePtr state); 137 mojo::TextInputStatePtr state);
138 void SetImeVisibility(WindowMus* window, 138 void SetImeVisibility(WindowMus* window,
139 bool visible, 139 bool visible,
140 mojo::TextInputStatePtr state); 140 mojo::TextInputStatePtr state);
141 141
142 // Embeds a new client in |window|. |flags| is a bitmask of the values defined 142 // Embeds a new client in |window|. |flags| is a bitmask of the values defined
143 // by kEmbedFlag*; 0 gives default behavior. |callback| is called to indicate 143 // by kEmbedFlag*; 0 gives default behavior. |callback| is called to indicate
144 // whether the embedding succeeded or failed and may be called immediately if 144 // whether the embedding succeeded or failed and may be called immediately if
145 // the embedding is known to fail. 145 // the embedding is known to fail.
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 const base::Optional<std::vector<uint8_t>>& transport_data) override; 377 const base::Optional<std::vector<uint8_t>>& transport_data) override;
378 void OnWindowInputEvent(uint32_t event_id, 378 void OnWindowInputEvent(uint32_t event_id,
379 Id window_id, 379 Id window_id,
380 int64_t display_id, 380 int64_t display_id,
381 std::unique_ptr<ui::Event> event, 381 std::unique_ptr<ui::Event> event,
382 bool matches_pointer_watcher) override; 382 bool matches_pointer_watcher) override;
383 void OnPointerEventObserved(std::unique_ptr<ui::Event> event, 383 void OnPointerEventObserved(std::unique_ptr<ui::Event> event,
384 uint32_t window_id, 384 uint32_t window_id,
385 int64_t display_id) override; 385 int64_t display_id) override;
386 void OnWindowFocused(Id focused_window_id) override; 386 void OnWindowFocused(Id focused_window_id) override;
387 void OnWindowPredefinedCursorChanged(Id window_id, 387 void OnWindowCursorChanged(Id window_id, ui::CursorData cursor) override;
388 ui::mojom::CursorType cursor) override;
389 void OnWindowSurfaceChanged(Id window_id, 388 void OnWindowSurfaceChanged(Id window_id,
390 const cc::SurfaceInfo& surface_info) override; 389 const cc::SurfaceInfo& surface_info) override;
391 void OnDragDropStart( 390 void OnDragDropStart(
392 const std::unordered_map<std::string, std::vector<uint8_t>>& mime_data) 391 const std::unordered_map<std::string, std::vector<uint8_t>>& mime_data)
393 override; 392 override;
394 void OnDragEnter(Id window_id, 393 void OnDragEnter(Id window_id,
395 uint32_t event_flags, 394 uint32_t event_flags,
396 const gfx::Point& position, 395 const gfx::Point& position,
397 uint32_t effect_bitmask, 396 uint32_t effect_bitmask,
398 const OnDragEnterCallback& callback) override; 397 const OnDragEnterCallback& callback) override;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 void WmStackAbove(uint32_t change_id, Id above_id, Id below_id) override; 458 void WmStackAbove(uint32_t change_id, Id above_id, Id below_id) override;
460 void WmStackAtTop(uint32_t change_id, uint32_t window_id) override; 459 void WmStackAtTop(uint32_t change_id, uint32_t window_id) override;
461 void OnAccelerator(uint32_t ack_id, 460 void OnAccelerator(uint32_t ack_id,
462 uint32_t accelerator_id, 461 uint32_t accelerator_id,
463 std::unique_ptr<ui::Event> event) override; 462 std::unique_ptr<ui::Event> event) override;
464 463
465 // Overridden from WindowManagerClient: 464 // Overridden from WindowManagerClient:
466 void SetFrameDecorationValues( 465 void SetFrameDecorationValues(
467 ui::mojom::FrameDecorationValuesPtr values) override; 466 ui::mojom::FrameDecorationValuesPtr values) override;
468 void SetNonClientCursor(Window* window, 467 void SetNonClientCursor(Window* window,
469 ui::mojom::CursorType cursor_id) override; 468 const ui::CursorData& cursor) override;
470 void AddAccelerators(std::vector<ui::mojom::WmAcceleratorPtr> accelerators, 469 void AddAccelerators(std::vector<ui::mojom::WmAcceleratorPtr> accelerators,
471 const base::Callback<void(bool)>& callback) override; 470 const base::Callback<void(bool)>& callback) override;
472 void RemoveAccelerator(uint32_t id) override; 471 void RemoveAccelerator(uint32_t id) override;
473 void AddActivationParent(Window* window) override; 472 void AddActivationParent(Window* window) override;
474 void RemoveActivationParent(Window* window) override; 473 void RemoveActivationParent(Window* window) override;
475 void ActivateNextWindow() override; 474 void ActivateNextWindow() override;
476 void SetExtendedHitArea(Window* window, const gfx::Insets& hit_area) override; 475 void SetExtendedHitArea(Window* window, const gfx::Insets& hit_area) override;
477 void RequestClose(Window* window) override; 476 void RequestClose(Window* window) override;
478 bool WaitForInitialDisplays() override; 477 bool WaitForInitialDisplays() override;
479 WindowTreeHostMusInitParams CreateInitParamsForNewDisplay() override; 478 WindowTreeHostMusInitParams CreateInitParamsForNewDisplay() override;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 gfx::Insets normal_client_area_insets_; 622 gfx::Insets normal_client_area_insets_;
624 623
625 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 624 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
626 625
627 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 626 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
628 }; 627 };
629 628
630 } // namespace aura 629 } // namespace aura
631 630
632 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 631 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_port_mus.cc ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698