OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ | 5 #ifndef ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ |
6 #define ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ | 6 #define ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/common/shell_window_ids.h" | 10 #include "ash/common/shell_window_ids.h" |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 std::unique_ptr<wm::WindowState> window_state_; | 278 std::unique_ptr<wm::WindowState> window_state_; |
279 | 279 |
280 views::Widget* widget_ = nullptr; | 280 views::Widget* widget_ = nullptr; |
281 | 281 |
282 WidgetCreationType widget_creation_type_ = WidgetCreationType::INTERNAL; | 282 WidgetCreationType widget_creation_type_ = WidgetCreationType::INTERNAL; |
283 | 283 |
284 base::ObserverList<WmWindowObserver> observers_; | 284 base::ObserverList<WmWindowObserver> observers_; |
285 | 285 |
286 std::unique_ptr<MusLayoutManagerAdapter> layout_manager_adapter_; | 286 std::unique_ptr<MusLayoutManagerAdapter> layout_manager_adapter_; |
287 | 287 |
288 std::unique_ptr<gfx::Rect> restore_bounds_in_screen_; | |
289 | |
290 ui::WindowShowState restore_show_state_ = ui::SHOW_STATE_DEFAULT; | 288 ui::WindowShowState restore_show_state_ = ui::SHOW_STATE_DEFAULT; |
291 | 289 |
292 bool snap_children_to_pixel_boundary_ = false; | 290 bool snap_children_to_pixel_boundary_ = false; |
293 | 291 |
294 // If true child windows should get a slightly larger hit region to make | 292 // If true child windows should get a slightly larger hit region to make |
295 // resizing easier. | 293 // resizing easier. |
296 bool children_use_extended_hit_region_ = false; | 294 bool children_use_extended_hit_region_ = false; |
297 | 295 |
298 base::ObserverList<WmTransientWindowObserver, true> transient_observers_; | 296 base::ObserverList<WmTransientWindowObserver, true> transient_observers_; |
299 | 297 |
300 // If true the minimum size is 0x0, default is minimum size comes from widget. | 298 // If true the minimum size is 0x0, default is minimum size comes from widget. |
301 bool use_empty_minimum_size_for_testing_ = false; | 299 bool use_empty_minimum_size_for_testing_ = false; |
302 | 300 |
303 ui::wm::WindowType wm_window_type_ = ui::wm::WINDOW_TYPE_UNKNOWN; | 301 ui::wm::WindowType wm_window_type_ = ui::wm::WINDOW_TYPE_UNKNOWN; |
304 // Set to true if set_window_type() is called. | 302 // Set to true if set_window_type() is called. |
305 bool is_wm_window_type_set_ = false; | 303 bool is_wm_window_type_set_ = false; |
306 | 304 |
307 BoundsInScreenBehavior child_bounds_in_screen_behavior_ = | 305 BoundsInScreenBehavior child_bounds_in_screen_behavior_ = |
308 BoundsInScreenBehavior::USE_LOCAL_COORDINATES; | 306 BoundsInScreenBehavior::USE_LOCAL_COORDINATES; |
309 | 307 |
310 bool locked_to_root_ = false; | 308 bool locked_to_root_ = false; |
311 | 309 |
312 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); | 310 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); |
313 }; | 311 }; |
314 | 312 |
315 } // namespace mus | 313 } // namespace mus |
316 } // namespace ash | 314 } // namespace ash |
317 | 315 |
318 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ | 316 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ |
OLD | NEW |