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

Side by Side Diff: ash/common/wm/window_state.cc

Issue 2248913005: Revert of Use MD-ash's auto hide behavior for arc++ windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « ash/common/wm/window_state.h ('k') | ash/shelf/shelf_layout_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/wm/window_state.h" 5 #include "ash/common/wm/window_state.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/common/wm/default_state.h" 9 #include "ash/common/wm/default_state.h"
10 #include "ash/common/wm/window_positioning_utils.h" 10 #include "ash/common/wm/window_positioning_utils.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 WindowState::WindowState(WmWindow* window) 301 WindowState::WindowState(WmWindow* window)
302 : window_(window), 302 : window_(window),
303 window_position_managed_(false), 303 window_position_managed_(false),
304 bounds_changed_by_user_(false), 304 bounds_changed_by_user_(false),
305 panel_attached_(true), 305 panel_attached_(true),
306 ignored_by_shelf_(false), 306 ignored_by_shelf_(false),
307 can_consume_system_keys_(false), 307 can_consume_system_keys_(false),
308 unminimize_to_restore_bounds_(false), 308 unminimize_to_restore_bounds_(false),
309 in_immersive_fullscreen_(false), 309 in_immersive_fullscreen_(false),
310 hide_shelf_when_fullscreen_(true),
310 minimum_visibility_(false), 311 minimum_visibility_(false),
311 can_be_dragged_(true), 312 can_be_dragged_(true),
312 cached_always_on_top_(false), 313 cached_always_on_top_(false),
313 ignore_property_change_(false), 314 ignore_property_change_(false),
314 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) {} 315 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) {}
315 316
316 bool WindowState::GetAlwaysOnTop() const { 317 bool WindowState::GetAlwaysOnTop() const {
317 return window_->IsAlwaysOnTop(); 318 return window_->IsAlwaysOnTop();
318 } 319 }
319 320
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 if (!window_->GetTargetVisibility()) { 396 if (!window_->GetTargetVisibility()) {
396 SetBoundsConstrained(new_bounds); 397 SetBoundsConstrained(new_bounds);
397 return; 398 return;
398 } 399 }
399 400
400 window_->SetBoundsDirectCrossFade(new_bounds); 401 window_->SetBoundsDirectCrossFade(new_bounds);
401 } 402 }
402 403
403 } // namespace wm 404 } // namespace wm
404 } // namespace ash 405 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/window_state.h ('k') | ash/shelf/shelf_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698