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

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

Issue 2558963002: Move shelf item tooltip flag from delegate to item. (Closed)
Patch Set: Remove WmWindowMus::SetBoolProperty override. Created 4 years 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/common/wm_window.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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 if (!ignore_property_change_) { 295 if (!ignore_property_change_) {
296 WMEvent event(WMEventTypeFromShowState(GetShowState())); 296 WMEvent event(WMEventTypeFromShowState(GetShowState()));
297 OnWMEvent(&event); 297 OnWMEvent(&event);
298 } 298 }
299 } 299 }
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),
306 ignored_by_shelf_(false), 305 ignored_by_shelf_(false),
307 can_consume_system_keys_(false), 306 can_consume_system_keys_(false),
308 unminimize_to_restore_bounds_(false), 307 unminimize_to_restore_bounds_(false),
309 in_immersive_fullscreen_(false), 308 in_immersive_fullscreen_(false),
310 hide_shelf_when_fullscreen_(true), 309 hide_shelf_when_fullscreen_(true),
311 minimum_visibility_(false), 310 minimum_visibility_(false),
312 can_be_dragged_(true), 311 can_be_dragged_(true),
313 cached_always_on_top_(false), 312 cached_always_on_top_(false),
314 ignore_property_change_(false), 313 ignore_property_change_(false),
315 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) {} 314 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) {}
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 if (!window_->GetTargetVisibility()) { 395 if (!window_->GetTargetVisibility()) {
397 SetBoundsConstrained(new_bounds); 396 SetBoundsConstrained(new_bounds);
398 return; 397 return;
399 } 398 }
400 399
401 window_->SetBoundsDirectCrossFade(new_bounds); 400 window_->SetBoundsDirectCrossFade(new_bounds);
402 } 401 }
403 402
404 } // namespace wm 403 } // namespace wm
405 } // namespace ash 404 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/window_state.h ('k') | ash/common/wm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698