| OLD | NEW |
| 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/wm/window_state.h" | 5 #include "ash/wm/window_state.h" |
| 6 | 6 |
| 7 #include "ash/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
| 8 #include "ash/screen_ash.h" | 8 #include "ash/screen_ash.h" |
| 9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
| 10 #include "ash/wm/window_properties.h" | 10 #include "ash/wm/window_properties.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 bounds_changed_by_user_(false), | 34 bounds_changed_by_user_(false), |
| 35 panel_attached_(true), | 35 panel_attached_(true), |
| 36 continue_drag_after_reparent_(false), | 36 continue_drag_after_reparent_(false), |
| 37 ignored_by_shelf_(false), | 37 ignored_by_shelf_(false), |
| 38 can_consume_system_keys_(false), | 38 can_consume_system_keys_(false), |
| 39 top_row_keys_are_function_keys_(false), | 39 top_row_keys_are_function_keys_(false), |
| 40 window_resizer_(NULL), | 40 window_resizer_(NULL), |
| 41 always_restores_to_restore_bounds_(false), | 41 always_restores_to_restore_bounds_(false), |
| 42 hide_shelf_when_fullscreen_(true), | 42 hide_shelf_when_fullscreen_(true), |
| 43 animate_to_fullscreen_(true), | 43 animate_to_fullscreen_(true), |
| 44 minimum_visibility_(false), |
| 44 window_show_type_(ToWindowShowType(GetShowState())) { | 45 window_show_type_(ToWindowShowType(GetShowState())) { |
| 45 window_->AddObserver(this); | 46 window_->AddObserver(this); |
| 46 } | 47 } |
| 47 | 48 |
| 48 WindowState::~WindowState() { | 49 WindowState::~WindowState() { |
| 49 } | 50 } |
| 50 | 51 |
| 51 void WindowState::SetDelegate(scoped_ptr<WindowStateDelegate> delegate) { | 52 void WindowState::SetDelegate(scoped_ptr<WindowStateDelegate> delegate) { |
| 52 DCHECK(!delegate_.get()); | 53 DCHECK(!delegate_.get()); |
| 53 delegate_ = delegate.Pass(); | 54 delegate_ = delegate.Pass(); |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 } | 300 } |
| 300 return settings; | 301 return settings; |
| 301 } | 302 } |
| 302 | 303 |
| 303 const WindowState* GetWindowState(const aura::Window* window) { | 304 const WindowState* GetWindowState(const aura::Window* window) { |
| 304 return GetWindowState(const_cast<aura::Window*>(window)); | 305 return GetWindowState(const_cast<aura::Window*>(window)); |
| 305 } | 306 } |
| 306 | 307 |
| 307 } // namespace wm | 308 } // namespace wm |
| 308 } // namespace ash | 309 } // namespace ash |
| OLD | NEW |