diff options
Diffstat (limited to 'ui/views/mus/window_tree_host_mus.cc')
-rw-r--r-- | ui/views/mus/window_tree_host_mus.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/views/mus/window_tree_host_mus.cc b/ui/views/mus/window_tree_host_mus.cc index fd7e1f1..f4edd4c 100644 --- a/ui/views/mus/window_tree_host_mus.cc +++ b/ui/views/mus/window_tree_host_mus.cc @@ -68,6 +68,14 @@ void WindowTreeHostMus::SetShowState(mus::mojom::ShowState show_state) { //////////////////////////////////////////////////////////////////////////////// // WindowTreeHostMus, aura::WindowTreeHost implementation: +gfx::Rect WindowTreeHostMus::GetBounds() const { + return mus_window_->bounds(); +} + +void WindowTreeHostMus::SetBounds(const gfx::Rect& bounds) { + mus_window_->SetBounds(bounds); +} + ui::EventSource* WindowTreeHostMus::GetEventSource() { return this; } @@ -86,14 +94,6 @@ void WindowTreeHostMus::HideImpl() { window()->Hide(); } -gfx::Rect WindowTreeHostMus::GetBounds() const { - return mus_window_->bounds(); -} - -void WindowTreeHostMus::SetBounds(const gfx::Rect& bounds) { - window()->SetBounds(gfx::Rect(bounds.size())); -} - gfx::Point WindowTreeHostMus::GetLocationOnNativeScreen() const { return gfx::Point(0, 0); } |