| Index: components/mus/ws/window_tree_host_impl.cc
|
| diff --git a/components/mus/ws/window_tree_host_impl.cc b/components/mus/ws/window_tree_host_impl.cc
|
| index 8aa8f6a2cf3588f151f04448b4e7207fcd933655..1c5de0377445e1b9aa623aed9ee7299c2158b1eb 100644
|
| --- a/components/mus/ws/window_tree_host_impl.cc
|
| +++ b/components/mus/ws/window_tree_host_impl.cc
|
| @@ -92,7 +92,8 @@ WindowTreeHostImpl::WindowTreeHostImpl(
|
| const scoped_refptr<GpuState>& gpu_state,
|
| const scoped_refptr<SurfacesState>& surfaces_state,
|
| mojom::WindowManagerPtr window_manager)
|
| - : delegate_(nullptr),
|
| + : id_(next_id++),
|
| + delegate_(nullptr),
|
| connection_manager_(connection_manager),
|
| client_(std::move(client)),
|
| event_dispatcher_(this),
|
| @@ -100,8 +101,12 @@ WindowTreeHostImpl::WindowTreeHostImpl(
|
| DisplayManager::Create(app_impl, gpu_state, surfaces_state)),
|
| window_manager_(std::move(window_manager)),
|
| tree_awaiting_input_ack_(nullptr),
|
| - last_cursor_(0),
|
| - id_(next_id) {
|
| + last_cursor_(0) {
|
| + frame_decoration_values_ = mojom::FrameDecorationValues::New();
|
| + frame_decoration_values_->normal_client_area_insets = mojo::Insets::New();
|
| + frame_decoration_values_->maximized_client_area_insets = mojo::Insets::New();
|
| + frame_decoration_values_->max_title_bar_button_width = 0u;
|
| +
|
| display_manager_->Init(this);
|
| if (client_) {
|
| client_.set_connection_error_handler(base::Bind(
|
| @@ -129,6 +134,12 @@ WindowTreeImpl* WindowTreeHostImpl::GetWindowTree() {
|
| return delegate_ ? delegate_->GetWindowTree() : nullptr;
|
| }
|
|
|
| +void WindowTreeHostImpl::SetFrameDecorationValues(
|
| + mojom::FrameDecorationValuesPtr values) {
|
| + frame_decoration_values_ = values.Clone();
|
| + connection_manager_->ProcessFrameDecorationValuesChanged(this);
|
| +}
|
| +
|
| bool WindowTreeHostImpl::IsWindowAttachedToRoot(
|
| const ServerWindow* window) const {
|
| return root_->Contains(window) && window != root_.get();
|
|
|