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