| 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/shelf/shelf_util.h" | 8 #include "ash/shelf/shelf_util.h" |
| 9 #include "ash/wm/aura/aura_layout_manager_adapter.h" | 9 #include "ash/wm/aura/aura_layout_manager_adapter.h" |
| 10 #include "ash/wm/aura/wm_globals_aura.h" | 10 #include "ash/wm/aura/wm_globals_aura.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 WmRootWindowController* WmWindowAura::GetRootWindowController() { | 114 WmRootWindowController* WmWindowAura::GetRootWindowController() { |
| 115 aura::Window* root = window_->GetRootWindow(); | 115 aura::Window* root = window_->GetRootWindow(); |
| 116 return root ? WmRootWindowControllerAura::Get(root) : nullptr; | 116 return root ? WmRootWindowControllerAura::Get(root) : nullptr; |
| 117 } | 117 } |
| 118 | 118 |
| 119 WmGlobals* WmWindowAura::GetGlobals() const { | 119 WmGlobals* WmWindowAura::GetGlobals() const { |
| 120 return WmGlobalsAura::Get(); | 120 return WmGlobalsAura::Get(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void WmWindowAura::SetName(const std::string& name) { | |
| 124 window_->SetName(name); | |
| 125 } | |
| 126 | |
| 127 void WmWindowAura::SetShellWindowId(int id) { | 123 void WmWindowAura::SetShellWindowId(int id) { |
| 128 window_->set_id(id); | 124 window_->set_id(id); |
| 129 } | 125 } |
| 130 | 126 |
| 131 int WmWindowAura::GetShellWindowId() const { | 127 int WmWindowAura::GetShellWindowId() const { |
| 132 return window_->id(); | 128 return window_->id(); |
| 133 } | 129 } |
| 134 | 130 |
| 135 ui::wm::WindowType WmWindowAura::GetType() const { | 131 ui::wm::WindowType WmWindowAura::GetType() const { |
| 136 return window_->type(); | 132 return window_->type(); |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 } | 561 } |
| 566 | 562 |
| 567 void WmWindowAura::OnWindowVisibilityChanging(aura::Window* window, | 563 void WmWindowAura::OnWindowVisibilityChanging(aura::Window* window, |
| 568 bool visible) { | 564 bool visible) { |
| 569 FOR_EACH_OBSERVER(WmWindowObserver, observers_, | 565 FOR_EACH_OBSERVER(WmWindowObserver, observers_, |
| 570 OnWindowVisibilityChanging(this, visible)); | 566 OnWindowVisibilityChanging(this, visible)); |
| 571 } | 567 } |
| 572 | 568 |
| 573 } // namespace wm | 569 } // namespace wm |
| 574 } // namespace ash | 570 } // namespace ash |
| OLD | NEW |