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

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

Issue 1909273003: Makes PhantonWindowController use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@workspace_window_resizer
Patch Set: merge 2 trunk Created 4 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/aura/wm_window_aura.h ('k') | ash/wm/common/wm_window.h » ('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/aura/wm_window_aura.h" 5 #include "ash/wm/aura/wm_window_aura.h"
6 6
7 #include "ash/screen_util.h" 7 #include "ash/screen_util.h"
8 #include "ash/wm/aura/aura_layout_manager_adapter.h" 8 #include "ash/wm/aura/aura_layout_manager_adapter.h"
9 #include "ash/wm/aura/wm_globals_aura.h" 9 #include "ash/wm/aura/wm_globals_aura.h"
10 #include "ash/wm/aura/wm_root_window_controller_aura.h" 10 #include "ash/wm/aura/wm_root_window_controller_aura.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 WmRootWindowController* WmWindowAura::GetRootWindowController() { 109 WmRootWindowController* WmWindowAura::GetRootWindowController() {
110 aura::Window* root = window_->GetRootWindow(); 110 aura::Window* root = window_->GetRootWindow();
111 return root ? WmRootWindowControllerAura::Get(root) : nullptr; 111 return root ? WmRootWindowControllerAura::Get(root) : nullptr;
112 } 112 }
113 113
114 WmGlobals* WmWindowAura::GetGlobals() const { 114 WmGlobals* WmWindowAura::GetGlobals() const {
115 return WmGlobalsAura::Get(); 115 return WmGlobalsAura::Get();
116 } 116 }
117 117
118 void WmWindowAura::SetName(const std::string& name) {
119 window_->SetName(name);
120 }
121
122 void WmWindowAura::SetShellWindowId(int id) {
123 window_->set_id(id);
124 }
125
118 int WmWindowAura::GetShellWindowId() { 126 int WmWindowAura::GetShellWindowId() {
119 return window_->id(); 127 return window_->id();
120 } 128 }
121 129
122 ui::wm::WindowType WmWindowAura::GetType() const { 130 ui::wm::WindowType WmWindowAura::GetType() const {
123 return window_->type(); 131 return window_->type();
124 } 132 }
125 133
126 ui::Layer* WmWindowAura::GetLayer() { 134 ui::Layer* WmWindowAura::GetLayer() {
127 return window_->layer(); 135 return window_->layer();
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 } 543 }
536 544
537 void WmWindowAura::OnWindowVisibilityChanging(aura::Window* window, 545 void WmWindowAura::OnWindowVisibilityChanging(aura::Window* window,
538 bool visible) { 546 bool visible) {
539 FOR_EACH_OBSERVER(WmWindowObserver, observers_, 547 FOR_EACH_OBSERVER(WmWindowObserver, observers_,
540 OnWindowVisibilityChanging(this, visible)); 548 OnWindowVisibilityChanging(this, visible));
541 } 549 }
542 550
543 } // namespace wm 551 } // namespace wm
544 } // namespace ash 552 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/aura/wm_window_aura.h ('k') | ash/wm/common/wm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698