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

Unified Diff: ui/aura/mus/window_tree_host_mus_delegate.h

Issue 2470963002: Makes it possible for clients to directly create WindowTreeHostMus (Closed)
Patch Set: nuke comment Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.cc ('k') | ui/aura/test/aura_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_host_mus_delegate.h
diff --git a/ui/aura/mus/window_tree_host_mus_delegate.h b/ui/aura/mus/window_tree_host_mus_delegate.h
index 47024b9003d3a53ff8ca9fbed67c58d98d6e162f..e93dcfcaa912ba3117bd7630a914cf937d8b0bea 100644
--- a/ui/aura/mus/window_tree_host_mus_delegate.h
+++ b/ui/aura/mus/window_tree_host_mus_delegate.h
@@ -13,14 +13,24 @@ class Rect;
namespace aura {
-class Window;
+class WindowPortMus;
+class WindowTreeHostMus;
class AURA_EXPORT WindowTreeHostMusDelegate {
public:
- // Called to set the bounds of the root window. |bounds| is the bounds
- // supplied to SetBounds() and may be adjusted by the default. After this call
- // |bounds| is applied to WindowTreeHost. |bounds| is in dips.
- virtual void SetRootWindowBounds(Window* window, gfx::Rect* bounds) = 0;
+ // Called when the bounds of a WindowTreeHostMus is about to change.
+ // |bounds| is the bounds supplied to WindowTreeHostMus::SetBounds() and is
+ // in screen pixel coordinates.
+ virtual void OnWindowTreeHostBoundsWillChange(
+ WindowTreeHostMus* window_tree_host,
+ const gfx::Rect& bounds) = 0;
+
+ // Called when a WindowTreeHostMus is created without a WindowPort.
+ virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel() = 0;
+
+ // Called from WindowTreeHostMus's constructor once the Window has been
+ // created.
+ virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0;
protected:
virtual ~WindowTreeHostMusDelegate() {}
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.cc ('k') | ui/aura/test/aura_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698