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

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

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 years, 7 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
« no previous file with comments | « ash/wm/workspace/workspace_manager_unittest.cc ('k') | build/all.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_window_resizer.h" 5 #include "ash/wm/workspace/workspace_window_resizer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
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/root_window_event_filter.h" 12 #include "ash/wm/root_window_event_filter.h"
13 #include "ash/wm/window_util.h" 13 #include "ash/wm/window_util.h"
14 #include "ash/wm/workspace/phantom_window_controller.h" 14 #include "ash/wm/workspace/phantom_window_controller.h"
15 #include "ash/wm/workspace/snap_sizer.h" 15 #include "ash/wm/workspace/snap_sizer.h"
16 #include "ui/aura/window.h" 16 #include "ui/aura/window.h"
17 #include "ui/aura/window_delegate.h" 17 #include "ui/aura/window_delegate.h"
18 #include "ui/base/hit_test.h" 18 #include "ui/base/hit_test.h"
19 #include "ui/gfx/compositor/scoped_layer_animation_settings.h" 19 #include "ui/compositor/layer.h"
20 #include "ui/gfx/compositor/layer.h" 20 #include "ui/compositor/scoped_layer_animation_settings.h"
21 #include "ui/gfx/screen.h" 21 #include "ui/gfx/screen.h"
22 #include "ui/gfx/transform.h" 22 #include "ui/gfx/transform.h"
23 23
24 namespace ash { 24 namespace ash {
25 namespace internal { 25 namespace internal {
26 26
27 namespace { 27 namespace {
28 28
29 // Duration of the animation when snapping the window into place. 29 // Duration of the animation when snapping the window into place.
30 const int kSnapDurationMS = 100; 30 const int kSnapDurationMS = 100;
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 gfx::Screen::GetMonitorNearestWindow(details_.window).bounds()); 428 gfx::Screen::GetMonitorNearestWindow(details_.window).bounds());
429 if (location.x() <= area.x()) 429 if (location.x() <= area.x())
430 return SNAP_LEFT_EDGE; 430 return SNAP_LEFT_EDGE;
431 if (location.x() >= area.right() - 1) 431 if (location.x() >= area.right() - 1)
432 return SNAP_RIGHT_EDGE; 432 return SNAP_RIGHT_EDGE;
433 return SNAP_NONE; 433 return SNAP_NONE;
434 } 434 }
435 435
436 } // namespace internal 436 } // namespace internal
437 } // namespace ash 437 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_manager_unittest.cc ('k') | build/all.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698