| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 BoundsInScreenBehavior behavior) override; | 200 BoundsInScreenBehavior behavior) override; |
| 201 void SetSnapsChildrenToPhysicalPixelBoundary() override; | 201 void SetSnapsChildrenToPhysicalPixelBoundary() override; |
| 202 void SnapToPixelBoundaryIfNecessary() override; | 202 void SnapToPixelBoundaryIfNecessary() override; |
| 203 void SetChildrenUseExtendedHitRegion() override; | 203 void SetChildrenUseExtendedHitRegion() override; |
| 204 void SetDescendantsStayInSameRootWindow(bool value) override; | 204 void SetDescendantsStayInSameRootWindow(bool value) override; |
| 205 void AddObserver(WmWindowObserver* observer) override; | 205 void AddObserver(WmWindowObserver* observer) override; |
| 206 void RemoveObserver(WmWindowObserver* observer) override; | 206 void RemoveObserver(WmWindowObserver* observer) override; |
| 207 | 207 |
| 208 private: | 208 private: |
| 209 // mus::WindowObserver: | 209 // mus::WindowObserver: |
| 210 void OnTreeChanging(const TreeChangeParams& params) override; |
| 210 void OnTreeChanged(const TreeChangeParams& params) override; | 211 void OnTreeChanged(const TreeChangeParams& params) override; |
| 211 void OnWindowReordered(::mus::Window* window, | 212 void OnWindowReordered(::mus::Window* window, |
| 212 ::mus::Window* relative_window, | 213 ::mus::Window* relative_window, |
| 213 ::mus::mojom::OrderDirection direction) override; | 214 ::mus::mojom::OrderDirection direction) override; |
| 214 void OnWindowSharedPropertyChanged( | 215 void OnWindowSharedPropertyChanged( |
| 215 ::mus::Window* window, | 216 ::mus::Window* window, |
| 216 const std::string& name, | 217 const std::string& name, |
| 217 const std::vector<uint8_t>* old_data, | 218 const std::vector<uint8_t>* old_data, |
| 218 const std::vector<uint8_t>* new_data) override; | 219 const std::vector<uint8_t>* new_data) override; |
| 219 void OnWindowBoundsChanged(::mus::Window* window, | 220 void OnWindowBoundsChanged(::mus::Window* window, |
| 220 const gfx::Rect& old_bounds, | 221 const gfx::Rect& old_bounds, |
| 221 const gfx::Rect& new_bounds) override; | 222 const gfx::Rect& new_bounds) override; |
| 222 void OnWindowDestroying(::mus::Window* window) override; | 223 void OnWindowDestroying(::mus::Window* window) override; |
| 224 void OnWindowDestroyed(::mus::Window* window) override; |
| 223 | 225 |
| 224 ::mus::Window* window_; | 226 ::mus::Window* window_; |
| 225 | 227 |
| 226 // The shell window id of this window. Shell window ids are defined in | 228 // The shell window id of this window. Shell window ids are defined in |
| 227 // ash/common/shell_window_ids.h. | 229 // ash/common/shell_window_ids.h. |
| 228 int shell_window_id_ = kShellWindowId_Invalid; | 230 int shell_window_id_ = kShellWindowId_Invalid; |
| 229 | 231 |
| 230 std::unique_ptr<wm::WindowState> window_state_; | 232 std::unique_ptr<wm::WindowState> window_state_; |
| 231 | 233 |
| 232 views::Widget* widget_ = nullptr; | 234 views::Widget* widget_ = nullptr; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 247 // resizing easier. | 249 // resizing easier. |
| 248 bool children_use_extended_hit_region_ = false; | 250 bool children_use_extended_hit_region_ = false; |
| 249 | 251 |
| 250 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); | 252 DISALLOW_COPY_AND_ASSIGN(WmWindowMus); |
| 251 }; | 253 }; |
| 252 | 254 |
| 253 } // namespace mus | 255 } // namespace mus |
| 254 } // namespace ash | 256 } // namespace ash |
| 255 | 257 |
| 256 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ | 258 #endif // ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ |
| OLD | NEW |