| 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 #include "mash/wm/bridge/wm_window_mus.h" | 5 #include "mash/wm/bridge/wm_window_mus.h" |
| 6 | 6 |
| 7 #include "ash/wm/common/container_finder.h" | 7 #include "ash/wm/common/container_finder.h" |
| 8 #include "ash/wm/common/window_state.h" | 8 #include "ash/wm/common/window_state.h" |
| 9 #include "ash/wm/common/wm_layout_manager.h" | 9 #include "ash/wm/common/wm_layout_manager.h" |
| 10 #include "ash/wm/common/wm_window_observer.h" | 10 #include "ash/wm/common/wm_window_observer.h" |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 if (id == shell_window_id_) | 545 if (id == shell_window_id_) |
| 546 return this; | 546 return this; |
| 547 for (mus::Window* child : window_->children()) { | 547 for (mus::Window* child : window_->children()) { |
| 548 ash::wm::WmWindow* result = Get(child)->GetChildByShellWindowId(id); | 548 ash::wm::WmWindow* result = Get(child)->GetChildByShellWindowId(id); |
| 549 if (result) | 549 if (result) |
| 550 return result; | 550 return result; |
| 551 } | 551 } |
| 552 return nullptr; | 552 return nullptr; |
| 553 } | 553 } |
| 554 | 554 |
| 555 void WmWindowMus::ShowResizeShadow(int component) { |
| 556 NOTIMPLEMENTED(); |
| 557 } |
| 558 |
| 559 void WmWindowMus::HideResizeShadow() { |
| 560 NOTIMPLEMENTED(); |
| 561 } |
| 562 |
| 555 void WmWindowMus::SnapToPixelBoundaryIfNecessary() { | 563 void WmWindowMus::SnapToPixelBoundaryIfNecessary() { |
| 556 NOTIMPLEMENTED(); | 564 NOTIMPLEMENTED(); |
| 557 } | 565 } |
| 558 | 566 |
| 559 void WmWindowMus::AddObserver(ash::wm::WmWindowObserver* observer) { | 567 void WmWindowMus::AddObserver(ash::wm::WmWindowObserver* observer) { |
| 560 observers_.AddObserver(observer); | 568 observers_.AddObserver(observer); |
| 561 } | 569 } |
| 562 | 570 |
| 563 void WmWindowMus::RemoveObserver(ash::wm::WmWindowObserver* observer) { | 571 void WmWindowMus::RemoveObserver(ash::wm::WmWindowObserver* observer) { |
| 564 observers_.RemoveObserver(observer); | 572 observers_.RemoveObserver(observer); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 OnWindowBoundsChanged(this, old_bounds, new_bounds)); | 615 OnWindowBoundsChanged(this, old_bounds, new_bounds)); |
| 608 } | 616 } |
| 609 | 617 |
| 610 void WmWindowMus::OnWindowDestroying(mus::Window* window) { | 618 void WmWindowMus::OnWindowDestroying(mus::Window* window) { |
| 611 FOR_EACH_OBSERVER(ash::wm::WmWindowObserver, observers_, | 619 FOR_EACH_OBSERVER(ash::wm::WmWindowObserver, observers_, |
| 612 OnWindowDestroying(this)); | 620 OnWindowDestroying(this)); |
| 613 } | 621 } |
| 614 | 622 |
| 615 } // namespace wm | 623 } // namespace wm |
| 616 } // namespace mash | 624 } // namespace mash |
| OLD | NEW |