| Index: components/mus/public/cpp/lib/window.cc
|
| diff --git a/components/mus/public/cpp/lib/window.cc b/components/mus/public/cpp/lib/window.cc
|
| index 7f95c6ee22b6882bb426ab9efd33684968c374f8..7b57ddcb3d40aee739848aeb29ad6068788dc8ce 100644
|
| --- a/components/mus/public/cpp/lib/window.cc
|
| +++ b/components/mus/public/cpp/lib/window.cc
|
| @@ -14,6 +14,8 @@
|
| #include "components/mus/public/cpp/window_surface.h"
|
| #include "components/mus/public/cpp/window_tracker.h"
|
| #include "mojo/application/public/cpp/service_provider_impl.h"
|
| +#include "ui/gfx/geometry/rect.h"
|
| +#include "ui/gfx/geometry/size.h"
|
|
|
| namespace mus {
|
|
|
| @@ -359,6 +361,24 @@ void Window::SetImeVisibility(bool visible, mojo::TextInputStatePtr state) {
|
| }
|
| }
|
|
|
| +void Window::SetPreferredSize(const gfx::Size& size) {
|
| + if (connection_)
|
| + static_cast<WindowTreeClientImpl*>(connection_)
|
| + ->SetPreferredSize(id_, size);
|
| +}
|
| +
|
| +void Window::RequestBoundsChange(const gfx::Rect& bounds) {
|
| + if (connection_)
|
| + static_cast<WindowTreeClientImpl*>(connection_)
|
| + ->RequestBoundsChange(id_, bounds);
|
| +}
|
| +
|
| +void Window::SetShowState(mojom::ShowState show_state) {
|
| + if (connection_)
|
| + static_cast<WindowTreeClientImpl*>(connection_)
|
| + ->SetShowState(id_, show_state);
|
| +}
|
| +
|
| void Window::SetFocus() {
|
| if (connection_)
|
| static_cast<WindowTreeClientImpl*>(connection_)->SetFocus(id_);
|
|
|