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

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

Issue 2171983002: Move processing out of AcceleratorDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wire_up_controller
Patch Set: not relative 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 } 279 }
280 280
281 const wm::WindowState* WmWindowAura::GetWindowState() const { 281 const wm::WindowState* WmWindowAura::GetWindowState() const {
282 return ash::wm::GetWindowState(window_); 282 return ash::wm::GetWindowState(window_);
283 } 283 }
284 284
285 WmWindow* WmWindowAura::GetToplevelWindow() { 285 WmWindow* WmWindowAura::GetToplevelWindow() {
286 return Get(window_->GetToplevelWindow()); 286 return Get(window_->GetToplevelWindow());
287 } 287 }
288 288
289 WmWindow* WmWindowAura::GetToplevelWindowForFocus() {
290 return Get(::wm::GetToplevelWindow(window_));
291 }
292
289 void WmWindowAura::SetParentUsingContext(WmWindow* context, 293 void WmWindowAura::SetParentUsingContext(WmWindow* context,
290 const gfx::Rect& screen_bounds) { 294 const gfx::Rect& screen_bounds) {
291 aura::client::ParentWindowWithContext(window_, GetAuraWindow(context), 295 aura::client::ParentWindowWithContext(window_, GetAuraWindow(context),
292 screen_bounds); 296 screen_bounds);
293 } 297 }
294 298
295 void WmWindowAura::AddChild(WmWindow* window) { 299 void WmWindowAura::AddChild(WmWindow* window) {
296 window_->AddChild(GetAuraWindow(window)); 300 window_->AddChild(GetAuraWindow(window));
297 } 301 }
298 302
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 bool visible) { 737 bool visible) {
734 FOR_EACH_OBSERVER(WmWindowObserver, observers_, 738 FOR_EACH_OBSERVER(WmWindowObserver, observers_,
735 OnWindowVisibilityChanged(this, visible)); 739 OnWindowVisibilityChanged(this, visible));
736 } 740 }
737 741
738 void WmWindowAura::OnWindowTitleChanged(aura::Window* window) { 742 void WmWindowAura::OnWindowTitleChanged(aura::Window* window) {
739 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowTitleChanged(this)); 743 FOR_EACH_OBSERVER(WmWindowObserver, observers_, OnWindowTitleChanged(this));
740 } 744 }
741 745
742 } // namespace ash 746 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698