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

Side by Side Diff: ash/wm_window.cc

Issue 2908333003: [mus+ash] Removes WmWindow from ash (app_list, frame, metrics, session, system, wallpaper) (Closed)
Patch Set: [mus ash] Removes WmWindow from ash (rebase, nits and cleanup of use of ResizeHandleWindowTargeter) Created 3 years, 6 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_window.h ('k') | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('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_window.h" 5 #include "ash/wm_window.h"
6 6
7 #include "ash/ash_constants.h" 7 #include "ash/ash_constants.h"
8 #include "ash/public/cpp/config.h" 8 #include "ash/public/cpp/config.h"
9 #include "ash/public/cpp/shell_window_ids.h" 9 #include "ash/public/cpp/shell_window_ids.h"
10 #include "ash/public/cpp/window_properties.h" 10 #include "ash/public/cpp/window_properties.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 } 480 }
481 481
482 std::vector<WmWindow*> WmWindow::GetChildren() { 482 std::vector<WmWindow*> WmWindow::GetChildren() {
483 return FromAuraWindows(window_->children()); 483 return FromAuraWindows(window_->children());
484 } 484 }
485 485
486 WmWindow* WmWindow::GetChildByShellWindowId(int id) { 486 WmWindow* WmWindow::GetChildByShellWindowId(int id) {
487 return Get(window_->GetChildById(id)); 487 return Get(window_->GetChildById(id));
488 } 488 }
489 489
490 void WmWindow::InstallResizeHandleWindowTargeter(
491 ImmersiveFullscreenController* immersive_fullscreen_controller) {
492 window_->SetEventTargeter(base::MakeUnique<ResizeHandleWindowTargeter>(
493 window_, immersive_fullscreen_controller));
494 }
495
496 void WmWindow::SetBoundsInScreenBehaviorForChildren( 490 void WmWindow::SetBoundsInScreenBehaviorForChildren(
497 BoundsInScreenBehavior behavior) { 491 BoundsInScreenBehavior behavior) {
498 window_->SetProperty( 492 window_->SetProperty(
499 kUsesScreenCoordinatesKey, 493 kUsesScreenCoordinatesKey,
500 behavior == BoundsInScreenBehavior::USE_SCREEN_COORDINATES); 494 behavior == BoundsInScreenBehavior::USE_SCREEN_COORDINATES);
501 } 495 }
502 496
503 void WmWindow::SetSnapsChildrenToPhysicalPixelBoundary() { 497 void WmWindow::SetSnapsChildrenToPhysicalPixelBoundary() {
504 wm::SetSnapsChildrenToPhysicalPixelBoundary(window_); 498 wm::SetSnapsChildrenToPhysicalPixelBoundary(window_);
505 } 499 }
(...skipping 30 matching lines...) Expand all
536 observer.OnTransientChildAdded(this, Get(transient)); 530 observer.OnTransientChildAdded(this, Get(transient));
537 } 531 }
538 532
539 void WmWindow::OnTransientChildRemoved(aura::Window* window, 533 void WmWindow::OnTransientChildRemoved(aura::Window* window,
540 aura::Window* transient) { 534 aura::Window* transient) {
541 for (auto& observer : transient_observers_) 535 for (auto& observer : transient_observers_)
542 observer.OnTransientChildRemoved(this, Get(transient)); 536 observer.OnTransientChildRemoved(this, Get(transient));
543 } 537 }
544 538
545 } // namespace ash 539 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm_window.h ('k') | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698