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

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

Issue 2507963002: Implement hit tests/client area. (Closed)
Patch Set: fix x11 compile Created 4 years 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
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Establishes the connection by way of the WindowTreeFactory. 89 // Establishes the connection by way of the WindowTreeFactory.
90 void ConnectViaWindowTreeFactory(service_manager::Connector* connector); 90 void ConnectViaWindowTreeFactory(service_manager::Connector* connector);
91 91
92 // Establishes the connection by way of WindowManagerWindowTreeFactory. 92 // Establishes the connection by way of WindowManagerWindowTreeFactory.
93 void ConnectAsWindowManager(service_manager::Connector* connector); 93 void ConnectAsWindowManager(service_manager::Connector* connector);
94 94
95 bool connected() const { return tree_ != nullptr; } 95 bool connected() const { return tree_ != nullptr; }
96 ClientSpecificId client_id() const { return client_id_; } 96 ClientSpecificId client_id() const { return client_id_; }
97 97
98 void SetClientArea(Window* window,
99 const gfx::Insets& client_area,
100 const std::vector<gfx::Rect>& additional_client_areas);
101 void SetHitTestMask(Window* window, const gfx::Rect& mask);
102 void ClearHitTestMask(Window* window);
103 void SetCanFocus(Window* window, bool can_focus); 98 void SetCanFocus(Window* window, bool can_focus);
104 void SetCanAcceptDrops(Id window_id, bool can_accept_drops); 99 void SetCanAcceptDrops(Id window_id, bool can_accept_drops);
105 void SetCanAcceptEvents(Id window_id, bool can_accept_events); 100 void SetCanAcceptEvents(Id window_id, bool can_accept_events);
106 void SetPredefinedCursor(WindowMus* window, 101 void SetPredefinedCursor(WindowMus* window,
107 ui::mojom::Cursor old_cursor, 102 ui::mojom::Cursor old_cursor,
108 ui::mojom::Cursor new_cursor); 103 ui::mojom::Cursor new_cursor);
109 void SetWindowTextInputState(WindowMus* window, 104 void SetWindowTextInputState(WindowMus* window,
110 mojo::TextInputStatePtr state); 105 mojo::TextInputStatePtr state);
111 void SetImeVisibility(WindowMus* window, 106 void SetImeVisibility(WindowMus* window,
112 bool visible, 107 bool visible,
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 void RemoveActivationParent(Window* window) override; 402 void RemoveActivationParent(Window* window) override;
408 void ActivateNextWindow() override; 403 void ActivateNextWindow() override;
409 void SetUnderlaySurfaceOffsetAndExtendedHitArea( 404 void SetUnderlaySurfaceOffsetAndExtendedHitArea(
410 Window* window, 405 Window* window,
411 const gfx::Vector2d& offset, 406 const gfx::Vector2d& offset,
412 const gfx::Insets& hit_area) override; 407 const gfx::Insets& hit_area) override;
413 408
414 // Overriden from WindowTreeHostMusDelegate: 409 // Overriden from WindowTreeHostMusDelegate:
415 void OnWindowTreeHostBoundsWillChange(WindowTreeHostMus* window_tree_host, 410 void OnWindowTreeHostBoundsWillChange(WindowTreeHostMus* window_tree_host,
416 const gfx::Rect& bounds) override; 411 const gfx::Rect& bounds) override;
412 void OnWindowTreeHostClientAreaWillChange(
413 WindowTreeHostMus* window_tree_host,
414 const gfx::Insets& client_area) override;
415 void OnWindowTreeHostHitTestMaskWillChange(
416 WindowTreeHostMus* window_tree_host,
417 const base::Optional<gfx::Rect>& mask_rect) override;
417 std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel() override; 418 std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel() override;
418 void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) override; 419 void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) override;
419 420
420 // Override from client::TransientWindowClientObserver: 421 // Override from client::TransientWindowClientObserver:
421 void OnTransientChildWindowAdded(Window* parent, 422 void OnTransientChildWindowAdded(Window* parent,
422 Window* transient_child) override; 423 Window* transient_child) override;
423 void OnTransientChildWindowRemoved(Window* parent, 424 void OnTransientChildWindowRemoved(Window* parent,
424 Window* transient_child) override; 425 Window* transient_child) override;
425 426
426 // Overriden from DragDropControllerHost: 427 // Overriden from DragDropControllerHost:
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 std::unique_ptr<DragDropControllerMus> drag_drop_controller_; 501 std::unique_ptr<DragDropControllerMus> drag_drop_controller_;
501 502
502 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 503 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
503 504
504 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 505 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
505 }; 506 };
506 507
507 } // namespace aura 508 } // namespace aura
508 509
509 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 510 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698