| 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 MASH_WM_BRIDGE_WM_WINDOW_MUS_H_ | 5 #ifndef MASH_WM_BRIDGE_WM_WINDOW_MUS_H_ |
| 6 #define MASH_WM_BRIDGE_WM_WINDOW_MUS_H_ | 6 #define MASH_WM_BRIDGE_WM_WINDOW_MUS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/wm/common/wm_window.h" | 10 #include "ash/common/wm/wm_window.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "components/mus/public/cpp/window_observer.h" | 13 #include "components/mus/public/cpp/window_observer.h" |
| 14 | 14 |
| 15 namespace ash { | 15 namespace ash { |
| 16 namespace wm { | 16 namespace wm { |
| 17 class WmLayoutManager; | 17 class WmLayoutManager; |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 const std::vector<uint8_t>* old_data, | 221 const std::vector<uint8_t>* old_data, |
| 222 const std::vector<uint8_t>* new_data) override; | 222 const std::vector<uint8_t>* new_data) override; |
| 223 void OnWindowBoundsChanged(mus::Window* window, | 223 void OnWindowBoundsChanged(mus::Window* window, |
| 224 const gfx::Rect& old_bounds, | 224 const gfx::Rect& old_bounds, |
| 225 const gfx::Rect& new_bounds) override; | 225 const gfx::Rect& new_bounds) override; |
| 226 void OnWindowDestroying(mus::Window* window) override; | 226 void OnWindowDestroying(mus::Window* window) override; |
| 227 | 227 |
| 228 mus::Window* window_; | 228 mus::Window* window_; |
| 229 | 229 |
| 230 // The shell window id of this window. Shell window ids are defined in | 230 // The shell window id of this window. Shell window ids are defined in |
| 231 // ash/wm/common/wm_shell_window_ids.h. | 231 // ash/common/wm/wm_shell_window_ids.h. |
| 232 int shell_window_id_ = -1; | 232 int shell_window_id_ = -1; |
| 233 | 233 |
| 234 std::unique_ptr<ash::wm::WindowState> window_state_; | 234 std::unique_ptr<ash::wm::WindowState> window_state_; |
| 235 | 235 |
| 236 views::Widget* widget_ = nullptr; | 236 views::Widget* widget_ = nullptr; |
| 237 | 237 |
| 238 WidgetCreationType widget_creation_type_ = WidgetCreationType::INTERNAL; | 238 WidgetCreationType widget_creation_type_ = WidgetCreationType::INTERNAL; |
| 239 | 239 |
| 240 base::ObserverList<ash::wm::WmWindowObserver> observers_; | 240 base::ObserverList<ash::wm::WmWindowObserver> observers_; |
| 241 | 241 |
| 242 std::unique_ptr<MusLayoutManagerAdapter> layout_manager_adapter_; | 242 std::unique_ptr<MusLayoutManagerAdapter> layout_manager_adapter_; |
| 243 | 243 |
| 244 std::unique_ptr<gfx::Rect> restore_bounds_in_screen_; | 244 std::unique_ptr<gfx::Rect> restore_bounds_in_screen_; |
| 245 | 245 |
| 246 ui::WindowShowState restore_show_state_ = ui::SHOW_STATE_DEFAULT; | 246 ui::WindowShowState restore_show_state_ = ui::SHOW_STATE_DEFAULT; |
| 247 | 247 |
| 248 bool snap_children_to_pixel_boundary_ = false; | 248 bool snap_children_to_pixel_boundary_ = false; |
| 249 | 249 |
| 250 // If true child windows should get a slightly larger hit region to make | 250 // If true child windows should get a slightly larger hit region to make |
| 251 // resizing easier. | 251 // resizing easier. |
| 252 bool children_use_extended_hit_region_ = false; | 252 bool children_use_extended_hit_region_ = false; |
| 253 | 253 |
| 254 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); | 254 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); |
| 255 }; | 255 }; |
| 256 | 256 |
| 257 } // namespace wm | 257 } // namespace wm |
| 258 } // namespace mash | 258 } // namespace mash |
| 259 | 259 |
| 260 #endif // MASH_WM_BRIDGE_WM_WINDOW_MUS_H_ | 260 #endif // MASH_WM_BRIDGE_WM_WINDOW_MUS_H_ |
| OLD | NEW |