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

Side by Side Diff: ash/common/wm_window.cc

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: Address review issues. Created 3 years, 8 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 | « ash/common/wm/window_state.cc ('k') | ash/mus/window_manager.cc » ('j') | no next file with comments »
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/common/wm_window.h" 5 #include "ash/common/wm_window.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_shell_aura.h" 8 #include "ash/aura/wm_shell_aura.h"
9 #include "ash/common/ash_constants.h" 9 #include "ash/common/ash_constants.h"
10 #include "ash/common/wm/window_state.h" 10 #include "ash/common/wm/window_state.h"
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 intptr_t old) { 769 intptr_t old) {
770 if (key == aura::client::kShowStateKey) { 770 if (key == aura::client::kShowStateKey) {
771 ash::wm::GetWindowState(window_)->OnWindowShowStateChanged(); 771 ash::wm::GetWindowState(window_)->OnWindowShowStateChanged();
772 return; 772 return;
773 } 773 }
774 if (key == aura::client::kImmersiveFullscreenKey) { 774 if (key == aura::client::kImmersiveFullscreenKey) {
775 bool enable = window_->GetProperty(aura::client::kImmersiveFullscreenKey); 775 bool enable = window_->GetProperty(aura::client::kImmersiveFullscreenKey);
776 GetWindowState()->set_in_immersive_fullscreen(enable); 776 GetWindowState()->set_in_immersive_fullscreen(enable);
777 return; 777 return;
778 } 778 }
779 if (key == kWindowPinTypeKey) {
780 ash::wm::GetWindowState(window_)->OnWindowPinTypeChanged();
781 return;
782 }
779 } 783 }
780 784
781 void WmWindow::OnTransientChildAdded(aura::Window* window, 785 void WmWindow::OnTransientChildAdded(aura::Window* window,
782 aura::Window* transient) { 786 aura::Window* transient) {
783 for (auto& observer : transient_observers_) 787 for (auto& observer : transient_observers_)
784 observer.OnTransientChildAdded(this, Get(transient)); 788 observer.OnTransientChildAdded(this, Get(transient));
785 } 789 }
786 790
787 void WmWindow::OnTransientChildRemoved(aura::Window* window, 791 void WmWindow::OnTransientChildRemoved(aura::Window* window,
788 aura::Window* transient) { 792 aura::Window* transient) {
789 for (auto& observer : transient_observers_) 793 for (auto& observer : transient_observers_)
790 observer.OnTransientChildRemoved(this, Get(transient)); 794 observer.OnTransientChildRemoved(this, Get(transient));
791 } 795 }
792 796
793 } // namespace ash 797 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/window_state.cc ('k') | ash/mus/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698