| 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 "ash/aura/wm_window_aura.h" | 5 #include "ash/aura/wm_window_aura.h" |
| 6 | 6 |
| 7 #include "ash/aura/aura_layout_manager_adapter.h" | 7 #include "ash/aura/aura_layout_manager_adapter.h" |
| 8 #include "ash/aura/wm_root_window_controller_aura.h" | 8 #include "ash/aura/wm_root_window_controller_aura.h" |
| 9 #include "ash/aura/wm_shell_aura.h" | 9 #include "ash/aura/wm_shell_aura.h" |
| 10 #include "ash/common/ash_constants.h" | 10 #include "ash/common/ash_constants.h" |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 window_->SetEventTargeter(base::WrapUnique( | 639 window_->SetEventTargeter(base::WrapUnique( |
| 640 new ::wm::EasyResizeWindowTargeter(window_, mouse_extend, touch_extend))); | 640 new ::wm::EasyResizeWindowTargeter(window_, mouse_extend, touch_extend))); |
| 641 } | 641 } |
| 642 | 642 |
| 643 void WmWindowAura::SetDescendantsStayInSameRootWindow(bool value) { | 643 void WmWindowAura::SetDescendantsStayInSameRootWindow(bool value) { |
| 644 window_->SetProperty(kStayInSameRootWindowKey, true); | 644 window_->SetProperty(kStayInSameRootWindowKey, true); |
| 645 } | 645 } |
| 646 | 646 |
| 647 std::unique_ptr<views::View> WmWindowAura::CreateViewWithRecreatedLayers() { | 647 std::unique_ptr<views::View> WmWindowAura::CreateViewWithRecreatedLayers() { |
| 648 std::unique_ptr<wm::WindowMirrorView> view(new wm::WindowMirrorView(this)); | 648 std::unique_ptr<wm::WindowMirrorView> view(new wm::WindowMirrorView(this)); |
| 649 view->Init(); | |
| 650 return std::move(view); | 649 return std::move(view); |
| 651 } | 650 } |
| 652 | 651 |
| 653 void WmWindowAura::AddObserver(WmWindowObserver* observer) { | 652 void WmWindowAura::AddObserver(WmWindowObserver* observer) { |
| 654 observers_.AddObserver(observer); | 653 observers_.AddObserver(observer); |
| 655 } | 654 } |
| 656 | 655 |
| 657 void WmWindowAura::RemoveObserver(WmWindowObserver* observer) { | 656 void WmWindowAura::RemoveObserver(WmWindowObserver* observer) { |
| 658 observers_.RemoveObserver(observer); | 657 observers_.RemoveObserver(observer); |
| 659 } | 658 } |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 bool visible) { | 745 bool visible) { |
| 747 FOR_EACH_OBSERVER(WmWindowObserver, observers_, | 746 FOR_EACH_OBSERVER(WmWindowObserver, observers_, |
| 748 OnWindowVisibilityChanged(this, visible)); | 747 OnWindowVisibilityChanged(this, visible)); |
| 749 } | 748 } |
| 750 | 749 |
| 751 void WmWindowAura::OnWindowTitleChanged(aura::Window* window) { | 750 void WmWindowAura::OnWindowTitleChanged(aura::Window* window) { |
| 752 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowTitleChanged(this)); | 751 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowTitleChanged(this)); |
| 753 } | 752 } |
| 754 | 753 |
| 755 } // namespace ash | 754 } // namespace ash |
| OLD | NEW |