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

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

Issue 194843004: Move files from ui/views/corewm to ui/wm/core (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager_unittest.cc ('k') | ash/wm/workspace_controller.cc » ('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 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 20 matching lines...) Expand all
31 #include "base/memory/weak_ptr.h" 31 #include "base/memory/weak_ptr.h"
32 #include "ui/aura/client/aura_constants.h" 32 #include "ui/aura/client/aura_constants.h"
33 #include "ui/aura/client/screen_position_client.h" 33 #include "ui/aura/client/screen_position_client.h"
34 #include "ui/aura/window.h" 34 #include "ui/aura/window.h"
35 #include "ui/aura/window_delegate.h" 35 #include "ui/aura/window_delegate.h"
36 #include "ui/aura/window_event_dispatcher.h" 36 #include "ui/aura/window_event_dispatcher.h"
37 #include "ui/base/hit_test.h" 37 #include "ui/base/hit_test.h"
38 #include "ui/compositor/layer.h" 38 #include "ui/compositor/layer.h"
39 #include "ui/gfx/screen.h" 39 #include "ui/gfx/screen.h"
40 #include "ui/gfx/transform.h" 40 #include "ui/gfx/transform.h"
41 #include "ui/views/corewm/window_util.h" 41 #include "ui/wm/core/window_util.h"
42 #include "ui/wm/public/window_types.h" 42 #include "ui/wm/public/window_types.h"
43 43
44 namespace ash { 44 namespace ash {
45 45
46 scoped_ptr<WindowResizer> CreateWindowResizer( 46 scoped_ptr<WindowResizer> CreateWindowResizer(
47 aura::Window* window, 47 aura::Window* window,
48 const gfx::Point& point_in_parent, 48 const gfx::Point& point_in_parent,
49 int window_component, 49 int window_component,
50 aura::client::WindowMoveSource source) { 50 aura::client::WindowMoveSource source) {
51 DCHECK(window); 51 DCHECK(window);
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 gfx::Rect snapped_bounds = ScreenUtil::GetDisplayWorkAreaBoundsInParent( 1042 gfx::Rect snapped_bounds = ScreenUtil::GetDisplayWorkAreaBoundsInParent(
1043 GetTarget()); 1043 GetTarget());
1044 if (snapped_type == wm::WINDOW_STATE_TYPE_RIGHT_SNAPPED) 1044 if (snapped_type == wm::WINDOW_STATE_TYPE_RIGHT_SNAPPED)
1045 snapped_bounds.set_x(snapped_bounds.right() - bounds_in_parent.width()); 1045 snapped_bounds.set_x(snapped_bounds.right() - bounds_in_parent.width());
1046 snapped_bounds.set_width(bounds_in_parent.width()); 1046 snapped_bounds.set_width(bounds_in_parent.width());
1047 return bounds_in_parent == snapped_bounds; 1047 return bounds_in_parent == snapped_bounds;
1048 } 1048 }
1049 1049
1050 } // namespace internal 1050 } // namespace internal
1051 } // namespace ash 1051 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager_unittest.cc ('k') | ash/wm/workspace_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698