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

Side by Side Diff: ash/wm_window.cc

Issue 2814243002: Removes a couple more functions from WmWindow (Closed)
Patch Set: feedback 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/wm_window.h ('k') | chrome/browser/ui/ash/app_list/app_list_interactive_uitest.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/wm_window.h" 5 #include "ash/wm_window.h"
6 6
7 #include "ash/ash_constants.h" 7 #include "ash/ash_constants.h"
8 #include "ash/aura/aura_layout_manager_adapter.h" 8 #include "ash/aura/aura_layout_manager_adapter.h"
9 #include "ash/public/cpp/config.h" 9 #include "ash/public/cpp/config.h"
10 #include "ash/public/cpp/shell_window_ids.h" 10 #include "ash/public/cpp/shell_window_ids.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 const WmWindow* WmWindow::GetRootWindow() const { 149 const WmWindow* WmWindow::GetRootWindow() const {
150 return Get(window_->GetRootWindow()); 150 return Get(window_->GetRootWindow());
151 } 151 }
152 152
153 RootWindowController* WmWindow::GetRootWindowController() { 153 RootWindowController* WmWindow::GetRootWindowController() {
154 aura::Window* root = window_->GetRootWindow(); 154 aura::Window* root = window_->GetRootWindow();
155 return root ? RootWindowController::ForWindow(root) : nullptr; 155 return root ? RootWindowController::ForWindow(root) : nullptr;
156 } 156 }
157 157
158 void WmWindow::SetShellWindowId(int id) {
159 window_->set_id(id);
160 }
161
162 int WmWindow::GetShellWindowId() const {
163 return window_->id();
164 }
165
166 ui::wm::WindowType WmWindow::GetType() const { 158 ui::wm::WindowType WmWindow::GetType() const {
167 return window_->type(); 159 return window_->type();
168 } 160 }
169 161
170 int WmWindow::GetAppType() const { 162 int WmWindow::GetAppType() const {
171 return window_->GetProperty(aura::client::kAppType); 163 return window_->GetProperty(aura::client::kAppType);
172 } 164 }
173 165
174 void WmWindow::SetAppType(int app_type) const { 166 void WmWindow::SetAppType(int app_type) const {
175 window_->SetProperty(aura::client::kAppType, app_type); 167 window_->SetProperty(aura::client::kAppType, app_type);
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 observer.OnTransientChildAdded(this, Get(transient)); 755 observer.OnTransientChildAdded(this, Get(transient));
764 } 756 }
765 757
766 void WmWindow::OnTransientChildRemoved(aura::Window* window, 758 void WmWindow::OnTransientChildRemoved(aura::Window* window,
767 aura::Window* transient) { 759 aura::Window* transient) {
768 for (auto& observer : transient_observers_) 760 for (auto& observer : transient_observers_)
769 observer.OnTransientChildRemoved(this, Get(transient)); 761 observer.OnTransientChildRemoved(this, Get(transient));
770 } 762 }
771 763
772 } // namespace ash 764 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm_window.h ('k') | chrome/browser/ui/ash/app_list/app_list_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698