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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_window_state.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/maximize_mode/maximize_mode_window_state.h" 5 #include "ash/wm/maximize_mode/maximize_mode_window_state.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/common/wm_shell.h"
10 #include "ash/common/wm_window.h"
9 #include "ash/public/cpp/shell_window_ids.h" 11 #include "ash/public/cpp/shell_window_ids.h"
10 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h" 12 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h"
11 #include "ash/wm/window_animation_types.h" 13 #include "ash/wm/window_animation_types.h"
12 #include "ash/wm/window_state_util.h" 14 #include "ash/wm/window_state_util.h"
13 #include "ash/wm/wm_event.h" 15 #include "ash/wm/wm_event.h"
14 #include "ash/wm/wm_screen_util.h" 16 #include "ash/wm/wm_screen_util.h"
15 #include "ash/wm_shell.h"
16 #include "ash/wm_window.h"
17 #include "ui/compositor/layer.h" 17 #include "ui/compositor/layer.h"
18 #include "ui/gfx/geometry/rect.h" 18 #include "ui/gfx/geometry/rect.h"
19 19
20 namespace ash { 20 namespace ash {
21 namespace { 21 namespace {
22 22
23 // Returns the biggest possible size for a window which is about to be 23 // Returns the biggest possible size for a window which is about to be
24 // maximized. 24 // maximized.
25 gfx::Size GetMaximumSizeOfWindow(wm::WindowState* window_state) { 25 gfx::Size GetMaximumSizeOfWindow(wm::WindowState* window_state) {
26 DCHECK(window_state->CanMaximize() || window_state->CanResize()); 26 DCHECK(window_state->CanMaximize() || window_state->CanResize());
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // avoid flashing. 328 // avoid flashing.
329 if (window_state->IsMaximized()) 329 if (window_state->IsMaximized())
330 window_state->SetBoundsDirectCrossFade(bounds_in_parent); 330 window_state->SetBoundsDirectCrossFade(bounds_in_parent);
331 else 331 else
332 window_state->SetBoundsDirectAnimated(bounds_in_parent); 332 window_state->SetBoundsDirectAnimated(bounds_in_parent);
333 } 333 }
334 } 334 }
335 } 335 }
336 336
337 } // namespace ash 337 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc ('k') | ash/wm/maximize_mode/workspace_backdrop_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698