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

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

Issue 2168733002: Splits debug_commands into aura and non-aura parts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 5 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
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/aura/wm_window_aura.h" 5 #include "ash/aura/wm_window_aura.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_root_window_controller_aura.h" 8 #include "ash/aura/wm_root_window_controller_aura.h"
9 #include "ash/aura/wm_shell_aura.h" 9 #include "ash/aura/wm_shell_aura.h"
10 #include "ash/common/ash_constants.h" 10 #include "ash/common/ash_constants.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 WmShell* WmWindowAura::GetShell() const { 140 WmShell* WmWindowAura::GetShell() const {
141 return WmShell::Get(); 141 return WmShell::Get();
142 } 142 }
143 143
144 void WmWindowAura::SetName(const char* name) { 144 void WmWindowAura::SetName(const char* name) {
145 window_->SetName(name); 145 window_->SetName(name);
146 } 146 }
147 147
148 std::string WmWindowAura::GetName() const {
149 return window_->name();
150 }
151
148 base::string16 WmWindowAura::GetTitle() const { 152 base::string16 WmWindowAura::GetTitle() const {
149 return window_->title(); 153 return window_->title();
150 } 154 }
151 155
152 void WmWindowAura::SetShellWindowId(int id) { 156 void WmWindowAura::SetShellWindowId(int id) {
153 window_->set_id(id); 157 window_->set_id(id);
154 } 158 }
155 159
156 int WmWindowAura::GetShellWindowId() const { 160 int WmWindowAura::GetShellWindowId() const {
157 return window_->id(); 161 return window_->id();
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 bool visible) { 733 bool visible) {
730 FOR_EACH_OBSERVER(WmWindowObserver, observers_, 734 FOR_EACH_OBSERVER(WmWindowObserver, observers_,
731 OnWindowVisibilityChanged(this, visible)); 735 OnWindowVisibilityChanged(this, visible));
732 } 736 }
733 737
734 void WmWindowAura::OnWindowTitleChanged(aura::Window* window) { 738 void WmWindowAura::OnWindowTitleChanged(aura::Window* window) {
735 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowTitleChanged(this)); 739 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowTitleChanged(this));
736 } 740 }
737 741
738 } // namespace ash 742 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698