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

Unified Diff: components/exo/shell_surface.cc

Issue 2806783002: ash: Do not constrain window bounds if requested (Closed)
Patch Set: Remove dead code Created 3 years, 8 months 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 | « ash/wm/window_state_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 7427457d0bfde12f93dc1aa9b604650ec6233bba..52fc72f104895865781499c625aa816de7e74733 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1182,8 +1182,7 @@ void ShellSurface::CreateShellSurfaceWidget(ui::WindowShowState show_state) {
// Allow the client to request bounds that do not fill the entire work area
// when maximized, or the entire display when fullscreen.
- window_state->set_allow_set_bounds_in_maximized(
- bounds_mode_ == BoundsMode::CLIENT);
+ window_state->set_allow_set_bounds_direct(bounds_mode_ == BoundsMode::CLIENT);
// Notify client of initial state if different than normal.
if (window_state->GetStateType() != ash::wm::WINDOW_STATE_TYPE_NORMAL &&
@@ -1460,7 +1459,7 @@ void ShellSurface::UpdateWidgetBounds() {
ash::wm::WindowState* window_state =
ash::wm::GetWindowState(widget_->GetNativeWindow());
if (window_state->IsMaximizedOrFullscreenOrPinned() &&
- !window_state->allow_set_bounds_in_maximized()) {
+ !window_state->allow_set_bounds_direct()) {
return;
}
@@ -1629,7 +1628,7 @@ void ShellSurface::UpdateShadow() {
// not cover the entire background, e.g. overview mode).
if ((widget_->IsFullscreen() || widget_->IsMaximized() ||
underlay_capture_events) &&
- ash::wm::GetWindowState(window)->allow_set_bounds_in_maximized() &&
+ ash::wm::GetWindowState(window)->allow_set_bounds_direct() &&
window->layer()->GetTargetTransform().IsIdentity()) {
if (shadow_underlay_in_surface_) {
shadow_underlay_bounds = gfx::Rect(surface_->window()->bounds().size());
« no previous file with comments | « ash/wm/window_state_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698