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

Side by Side Diff: ui/aura/mus/window_tree_client.h

Issue 2784663003: mus: Rename mojom::Cursor to mojom::CursorType. (Closed)
Patch Set: Created 3 years, 8 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 121 }
122 122
123 bool connected() const { return tree_ != nullptr; } 123 bool connected() const { return tree_ != nullptr; }
124 ClientSpecificId client_id() const { return client_id_; } 124 ClientSpecificId client_id() const { return client_id_; }
125 125
126 void SetCanFocus(Window* window, bool can_focus); 126 void SetCanFocus(Window* window, bool can_focus);
127 void SetCanAcceptDrops(WindowMus* window, bool can_accept_drops); 127 void SetCanAcceptDrops(WindowMus* window, bool can_accept_drops);
128 void SetEventTargetingPolicy(WindowMus* window, 128 void SetEventTargetingPolicy(WindowMus* window,
129 ui::mojom::EventTargetingPolicy policy); 129 ui::mojom::EventTargetingPolicy policy);
130 void SetPredefinedCursor(WindowMus* window, 130 void SetPredefinedCursor(WindowMus* window,
131 ui::mojom::Cursor old_cursor, 131 ui::mojom::CursorType old_cursor,
132 ui::mojom::Cursor new_cursor); 132 ui::mojom::CursorType new_cursor);
133 void SetWindowTextInputState(WindowMus* window, 133 void SetWindowTextInputState(WindowMus* window,
134 mojo::TextInputStatePtr state); 134 mojo::TextInputStatePtr state);
135 void SetImeVisibility(WindowMus* window, 135 void SetImeVisibility(WindowMus* window,
136 bool visible, 136 bool visible,
137 mojo::TextInputStatePtr state); 137 mojo::TextInputStatePtr state);
138 138
139 // Embeds a new client in |window|. |flags| is a bitmask of the values defined 139 // Embeds a new client in |window|. |flags| is a bitmask of the values defined
140 // by kEmbedFlag*; 0 gives default behavior. |callback| is called to indicate 140 // by kEmbedFlag*; 0 gives default behavior. |callback| is called to indicate
141 // whether the embedding succeeded or failed and may be called immediately if 141 // whether the embedding succeeded or failed and may be called immediately if
142 // the embedding is known to fail. 142 // the embedding is known to fail.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 void OnWindowInputEvent(uint32_t event_id, 362 void OnWindowInputEvent(uint32_t event_id,
363 Id window_id, 363 Id window_id,
364 int64_t display_id, 364 int64_t display_id,
365 std::unique_ptr<ui::Event> event, 365 std::unique_ptr<ui::Event> event,
366 bool matches_pointer_watcher) override; 366 bool matches_pointer_watcher) override;
367 void OnPointerEventObserved(std::unique_ptr<ui::Event> event, 367 void OnPointerEventObserved(std::unique_ptr<ui::Event> event,
368 uint32_t window_id, 368 uint32_t window_id,
369 int64_t display_id) override; 369 int64_t display_id) override;
370 void OnWindowFocused(Id focused_window_id) override; 370 void OnWindowFocused(Id focused_window_id) override;
371 void OnWindowPredefinedCursorChanged(Id window_id, 371 void OnWindowPredefinedCursorChanged(Id window_id,
372 ui::mojom::Cursor cursor) override; 372 ui::mojom::CursorType cursor) override;
373 void OnWindowSurfaceChanged(Id window_id, 373 void OnWindowSurfaceChanged(Id window_id,
374 const cc::SurfaceInfo& surface_info) override; 374 const cc::SurfaceInfo& surface_info) override;
375 void OnDragDropStart( 375 void OnDragDropStart(
376 const std::unordered_map<std::string, std::vector<uint8_t>>& mime_data) 376 const std::unordered_map<std::string, std::vector<uint8_t>>& mime_data)
377 override; 377 override;
378 void OnDragEnter(Id window_id, 378 void OnDragEnter(Id window_id,
379 uint32_t event_flags, 379 uint32_t event_flags,
380 const gfx::Point& position, 380 const gfx::Point& position,
381 uint32_t effect_bitmask, 381 uint32_t effect_bitmask,
382 const OnDragEnterCallback& callback) override; 382 const OnDragEnterCallback& callback) override;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 void WmDeactivateWindow(Id window_id) override; 440 void WmDeactivateWindow(Id window_id) override;
441 void WmStackAbove(uint32_t change_id, Id above_id, Id below_id) override; 441 void WmStackAbove(uint32_t change_id, Id above_id, Id below_id) override;
442 void WmStackAtTop(uint32_t change_id, uint32_t window_id) override; 442 void WmStackAtTop(uint32_t change_id, uint32_t window_id) override;
443 void OnAccelerator(uint32_t ack_id, 443 void OnAccelerator(uint32_t ack_id,
444 uint32_t accelerator_id, 444 uint32_t accelerator_id,
445 std::unique_ptr<ui::Event> event) override; 445 std::unique_ptr<ui::Event> event) override;
446 446
447 // Overridden from WindowManagerClient: 447 // Overridden from WindowManagerClient:
448 void SetFrameDecorationValues( 448 void SetFrameDecorationValues(
449 ui::mojom::FrameDecorationValuesPtr values) override; 449 ui::mojom::FrameDecorationValuesPtr values) override;
450 void SetNonClientCursor(Window* window, ui::mojom::Cursor cursor_id) override; 450 void SetNonClientCursor(Window* window,
451 ui::mojom::CursorType cursor_id) override;
451 void AddAccelerators(std::vector<ui::mojom::WmAcceleratorPtr> accelerators, 452 void AddAccelerators(std::vector<ui::mojom::WmAcceleratorPtr> accelerators,
452 const base::Callback<void(bool)>& callback) override; 453 const base::Callback<void(bool)>& callback) override;
453 void RemoveAccelerator(uint32_t id) override; 454 void RemoveAccelerator(uint32_t id) override;
454 void AddActivationParent(Window* window) override; 455 void AddActivationParent(Window* window) override;
455 void RemoveActivationParent(Window* window) override; 456 void RemoveActivationParent(Window* window) override;
456 void ActivateNextWindow() override; 457 void ActivateNextWindow() override;
457 void SetExtendedHitArea(Window* window, const gfx::Insets& hit_area) override; 458 void SetExtendedHitArea(Window* window, const gfx::Insets& hit_area) override;
458 void RequestClose(Window* window) override; 459 void RequestClose(Window* window) override;
459 460
460 // Overriden from WindowTreeHostMusDelegate: 461 // Overriden from WindowTreeHostMusDelegate:
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 // ContextFactory that was set on Env originally. 590 // ContextFactory that was set on Env originally.
590 ui::ContextFactory* initial_context_factory_ = nullptr; 591 ui::ContextFactory* initial_context_factory_ = nullptr;
591 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 592 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
592 593
593 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 594 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
594 }; 595 };
595 596
596 } // namespace aura 597 } // namespace aura
597 598
598 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 599 #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