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

Side by Side Diff: ash/wm/overview/scoped_transform_overview_window.cc

Issue 2734733002: Revert "chromeos: Move files in //ash/common to //ash, part 3" (Closed)
Patch Set: Created 3 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/overview/scoped_transform_overview_window.h" 5 #include "ash/wm/overview/scoped_transform_overview_window.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/common/wm_shell.h"
11 #include "ash/common/wm_window.h"
10 #include "ash/root_window_controller.h" 12 #include "ash/root_window_controller.h"
11 #include "ash/wm/overview/scoped_overview_animation_settings.h" 13 #include "ash/wm/overview/scoped_overview_animation_settings.h"
12 #include "ash/wm/overview/scoped_overview_animation_settings_factory.h" 14 #include "ash/wm/overview/scoped_overview_animation_settings_factory.h"
13 #include "ash/wm/overview/window_selector_item.h" 15 #include "ash/wm/overview/window_selector_item.h"
14 #include "ash/wm/window_state.h" 16 #include "ash/wm/window_state.h"
15 #include "ash/wm_shell.h"
16 #include "ash/wm_window.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ptr_util.h" 18 #include "base/memory/ptr_util.h"
19 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
20 #include "base/threading/thread_task_runner_handle.h" 20 #include "base/threading/thread_task_runner_handle.h"
21 #include "ui/aura/client/aura_constants.h" 21 #include "ui/aura/client/aura_constants.h"
22 #include "ui/compositor/layer.h" 22 #include "ui/compositor/layer.h"
23 #include "ui/gfx/geometry/rect.h" 23 #include "ui/gfx/geometry/rect.h"
24 #include "ui/gfx/geometry/safe_integer_conversions.h" 24 #include "ui/gfx/geometry/safe_integer_conversions.h"
25 #include "ui/gfx/transform_util.h" 25 #include "ui/gfx/transform_util.h"
26 #include "ui/views/widget/widget.h" 26 #include "ui/views/widget/widget.h"
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 // In unit tests, the content view can have empty size. 498 // In unit tests, the content view can have empty size.
499 if (!preferred.IsEmpty()) { 499 if (!preferred.IsEmpty()) {
500 int inset = bounds.height() - preferred.height(); 500 int inset = bounds.height() - preferred.height();
501 bounds.Inset(0, 0, 0, inset); 501 bounds.Inset(0, 0, 0, inset);
502 } 502 }
503 minimized_widget_->SetBounds(bounds); 503 minimized_widget_->SetBounds(bounds);
504 minimized_widget_->Show(); 504 minimized_widget_->Show();
505 } 505 }
506 506
507 } // namespace ash 507 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/overview/scoped_overview_animation_settings_factory_aura.cc ('k') | ash/wm/overview/window_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698