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

Side by Side Diff: ash/wm/workspace/workspace_manager.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix command line Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/workspace/workspace_manager.h" 5 #include "ash/wm/workspace/workspace_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/screen_ash.h" 9 #include "ash/screen_ash.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
11 #include "ash/wm/property_util.h" 11 #include "ash/wm/property_util.h"
12 #include "ash/wm/shelf_layout_manager.h" 12 #include "ash/wm/shelf_layout_manager.h"
13 #include "ash/wm/window_animations.h" 13 #include "ash/wm/window_animations.h"
14 #include "ash/wm/window_resizer.h" 14 #include "ash/wm/window_resizer.h"
15 #include "ash/wm/window_util.h" 15 #include "ash/wm/window_util.h"
16 #include "ash/wm/workspace/managed_workspace.h" 16 #include "ash/wm/workspace/managed_workspace.h"
17 #include "ash/wm/workspace/maximized_workspace.h" 17 #include "ash/wm/workspace/maximized_workspace.h"
18 #include "base/auto_reset.h" 18 #include "base/auto_reset.h"
19 #include "base/logging.h" 19 #include "base/logging.h"
20 #include "base/stl_util.h" 20 #include "base/stl_util.h"
21 #include "ui/aura/env.h" 21 #include "ui/aura/env.h"
22 #include "ui/aura/client/aura_constants.h" 22 #include "ui/aura/client/aura_constants.h"
23 #include "ui/aura/root_window.h" 23 #include "ui/aura/root_window.h"
24 #include "ui/aura/monitor.h"
25 #include "ui/aura/monitor_manager.h" 24 #include "ui/aura/monitor_manager.h"
26 #include "ui/aura/window.h" 25 #include "ui/aura/window.h"
27 #include "ui/base/ui_base_types.h" 26 #include "ui/base/ui_base_types.h"
28 #include "ui/gfx/compositor/layer.h" 27 #include "ui/gfx/compositor/layer.h"
29 #include "ui/gfx/compositor/layer_animator.h" 28 #include "ui/gfx/compositor/layer_animator.h"
30 #include "ui/gfx/compositor/scoped_layer_animation_settings.h" 29 #include "ui/gfx/compositor/scoped_layer_animation_settings.h"
30 #include "ui/gfx/monitor.h"
31 #include "ui/gfx/screen.h" 31 #include "ui/gfx/screen.h"
32 #include "ui/gfx/transform.h" 32 #include "ui/gfx/transform.h"
33 33
34 namespace { 34 namespace {
35 35
36 // The horizontal margein between workspaces in pixels. 36 // The horizontal margein between workspaces in pixels.
37 const int kWorkspaceHorizontalMargin = 50; 37 const int kWorkspaceHorizontalMargin = 50;
38 38
39 // Minimum/maximum scale for overview mode. 39 // Minimum/maximum scale for overview mode.
40 const float kMaxOverviewScale = 0.9f; 40 const float kMaxOverviewScale = 0.9f;
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 return workspace; 360 return workspace;
361 } 361 }
362 362
363 void WorkspaceManager::CleanupWorkspace(Workspace* workspace) { 363 void WorkspaceManager::CleanupWorkspace(Workspace* workspace) {
364 if (workspace->type() != Workspace::TYPE_MANAGED && workspace->is_empty()) 364 if (workspace->type() != Workspace::TYPE_MANAGED && workspace->is_empty())
365 delete workspace; 365 delete workspace;
366 } 366 }
367 367
368 } // namespace internal 368 } // namespace internal
369 } // namespace ash 369 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698