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

Unified Diff: ash/common/wm/overview/scoped_transform_overview_window.cc

Issue 2110643002: ash: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/common/wm/overview/window_grid.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/overview/scoped_transform_overview_window.cc
diff --git a/ash/common/wm/overview/scoped_transform_overview_window.cc b/ash/common/wm/overview/scoped_transform_overview_window.cc
index 40864a12d8ec77e41c4d4543dd6b1478024ff042..9bf7e472672a6d8ab9ba962f07cd98a239e6f07a 100644
--- a/ash/common/wm/overview/scoped_transform_overview_window.cc
+++ b/ash/common/wm/overview/scoped_transform_overview_window.cc
@@ -284,14 +284,14 @@ void ScopedTransformOverviewWindow::RestoreWindow() {
void ScopedTransformOverviewWindow::BeginScopedAnimation(
OverviewAnimationType animation_type,
ScopedAnimationSettings* animation_settings) {
- for (const auto& window : GetTransientTreeIterator(window_)) {
+ for (auto* window : GetTransientTreeIterator(window_)) {
animation_settings->push_back(
CreateScopedOverviewAnimationSettings(animation_type, window));
}
}
bool ScopedTransformOverviewWindow::Contains(const WmWindow* target) const {
- for (const auto& window : GetTransientTreeIterator(window_)) {
+ for (auto* window : GetTransientTreeIterator(window_)) {
if (window->Contains(target))
return true;
}
@@ -300,7 +300,7 @@ bool ScopedTransformOverviewWindow::Contains(const WmWindow* target) const {
gfx::Rect ScopedTransformOverviewWindow::GetTargetBoundsInScreen() const {
gfx::Rect bounds;
- for (const auto& window : GetTransientTreeIterator(window_)) {
+ for (auto* window : GetTransientTreeIterator(window_)) {
// Ignore other window types when computing bounding box of window
// selector target item.
if (window != window_ && window->GetType() != ui::wm::WINDOW_TYPE_NORMAL &&
@@ -397,7 +397,7 @@ void ScopedTransformOverviewWindow::SetTransform(
gfx::Point target_origin(GetTargetBoundsInScreen().origin());
- for (const auto& window : GetTransientTreeIterator(window_)) {
+ for (auto* window : GetTransientTreeIterator(window_)) {
WmWindow* parent_window = window->GetParent();
gfx::Point original_origin =
parent_window->ConvertRectToScreen(window->GetTargetBounds()).origin();
@@ -410,7 +410,7 @@ void ScopedTransformOverviewWindow::SetTransform(
}
void ScopedTransformOverviewWindow::SetOpacity(float opacity) {
- for (const auto& window : GetTransientTreeIterator(window_)) {
+ for (auto* window : GetTransientTreeIterator(window_)) {
window->SetOpacity(opacity);
}
}
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/common/wm/overview/window_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698