Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Side by Side Diff: ash/aura/wm_window_aura.cc

Issue 2190963002: Ash window cycle ui: don't create mirrored layers for previews until (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use OnVisibleBoundsChanged Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ash/wm/window_mirror_view.h » ('j') | ash/wm/window_mirror_view.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 window_->SetEventTargeter(base::WrapUnique( 684 window_->SetEventTargeter(base::WrapUnique(
685 new ::wm::EasyResizeWindowTargeter(window_, mouse_extend, touch_extend))); 685 new ::wm::EasyResizeWindowTargeter(window_, mouse_extend, touch_extend)));
686 } 686 }
687 687
688 void WmWindowAura::SetDescendantsStayInSameRootWindow(bool value) { 688 void WmWindowAura::SetDescendantsStayInSameRootWindow(bool value) {
689 window_->SetProperty(kStayInSameRootWindowKey, true); 689 window_->SetProperty(kStayInSameRootWindowKey, true);
690 } 690 }
691 691
692 std::unique_ptr<views::View> WmWindowAura::CreateViewWithRecreatedLayers() { 692 std::unique_ptr<views::View> WmWindowAura::CreateViewWithRecreatedLayers() {
693 std::unique_ptr<wm::WindowMirrorView> view(new wm::WindowMirrorView(this)); 693 std::unique_ptr<wm::WindowMirrorView> view(new wm::WindowMirrorView(this));
694 view->Init();
695 return std::move(view); 694 return std::move(view);
696 } 695 }
697 696
698 void WmWindowAura::AddObserver(WmWindowObserver* observer) { 697 void WmWindowAura::AddObserver(WmWindowObserver* observer) {
699 observers_.AddObserver(observer); 698 observers_.AddObserver(observer);
700 } 699 }
701 700
702 void WmWindowAura::RemoveObserver(WmWindowObserver* observer) { 701 void WmWindowAura::RemoveObserver(WmWindowObserver* observer) {
703 observers_.RemoveObserver(observer); 702 observers_.RemoveObserver(observer);
704 } 703 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 OnTransientChildAdded(this, Get(transient))); 823 OnTransientChildAdded(this, Get(transient)));
825 } 824 }
826 825
827 void WmWindowAura::OnTransientChildRemoved(aura::Window* window, 826 void WmWindowAura::OnTransientChildRemoved(aura::Window* window,
828 aura::Window* transient) { 827 aura::Window* transient) {
829 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, 828 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_,
830 OnTransientChildRemoved(this, Get(transient))); 829 OnTransientChildRemoved(this, Get(transient)));
831 } 830 }
832 831
833 } // namespace ash 832 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/wm/window_mirror_view.h » ('j') | ash/wm/window_mirror_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698