| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |