Chromium Code Reviews| Index: components/exo/shell_surface.cc |
| diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc |
| index 72f11c53c45055919cd6cbcda9f83703788b3c8d..06de88ee71fc143071ba412ae004997b15c98530 100644 |
| --- a/components/exo/shell_surface.cc |
| +++ b/components/exo/shell_surface.cc |
| @@ -932,6 +932,12 @@ void ShellSurface::CreateShellSurfaceWidget(ui::WindowShowState show_state) { |
| window->AddObserver(this); |
| ash::wm::WindowState* window_state = ash::wm::GetWindowState(window); |
| window_state->AddObserver(this); |
| + |
| + // Allow remote shell clients to update the bounds in maixmized/fullscreen |
|
reveman
2016/08/12 16:17:32
nit: maximized
oshima
2016/08/12 23:03:33
Done.
|
| + // mode. |
| + if (!application_id_.empty()) |
|
reveman
2016/08/12 16:17:32
This is not a proper test for arc apps. applicatio
oshima
2016/08/12 23:03:33
Done.
|
| + window_state->set_allow_set_bounds_in_maximized(true); |
| + |
| // Notify client of initial state if different than normal. |
| if (window_state->GetStateType() != ash::wm::WINDOW_STATE_TYPE_NORMAL && |
| !state_changed_callback_.is_null()) { |
| @@ -1152,10 +1158,6 @@ gfx::Point ShellSurface::GetSurfaceOrigin() const { |
| void ShellSurface::UpdateWidgetBounds() { |
| DCHECK(widget_); |
| - // Return early if the shell is currently managing the bounds of the widget. |
| - if (widget_->IsMaximized() || widget_->IsFullscreen() || IsResizing()) |
|
reveman
2016/08/12 16:17:32
I'm pretty sure we need the IsResizing part for in
oshima
2016/08/12 23:03:33
I thought you wanted me to remove it. (and I looks
reveman
2016/08/12 23:44:40
Sorry for the confusion. In my initial comment I w
oshima
2016/08/13 00:45:07
Note that it will only happens when this flag is s
|
| - return; |
| - |
| // Return early if there is pending configure requests. |
| if (!pending_configs_.empty() || scoped_configure_) |
| return; |