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

Side by Side Diff: ash/wm/window_resizer.h

Issue 1913473002: Makes WorkspaceWindowResizer use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@root_controller_observer
Patch Set: merge to trunk Created 4 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
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 #ifndef ASH_WM_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_WINDOW_RESIZER_H_
6 #define ASH_WM_WINDOW_RESIZER_H_ 6 #define ASH_WM_WINDOW_RESIZER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // Returns the width of the window. 102 // Returns the width of the window.
103 int GetWidthForDrag(int min_width, int* delta_x); 103 int GetWidthForDrag(int min_width, int* delta_x);
104 104
105 // Returns the height of the drag. 105 // Returns the height of the drag.
106 int GetHeightForDrag(int min_height, int* delta_y); 106 int GetHeightForDrag(int min_height, int* delta_y);
107 107
108 DISALLOW_COPY_AND_ASSIGN(WindowResizer); 108 DISALLOW_COPY_AND_ASSIGN(WindowResizer);
109 }; 109 };
110 110
111 // Creates a WindowResizer for |window|. This can return a scoped_ptr 111 // Creates a WindowResizer for |window|. This can return a scoped_ptr
James Cook 2016/04/22 20:06:13 nit while you're here: scoped_ptr -> unique_ptr
sky 2016/04/22 20:13:20 Done.
112 // initialized with NULL if |window| should not be resized nor dragged. 112 // initialized with NULL if |window| should not be resized nor dragged.
113 // TODO(sky): move this to its own file. This is aura specific.
114 ASH_EXPORT std::unique_ptr<WindowResizer> CreateWindowResizer( 113 ASH_EXPORT std::unique_ptr<WindowResizer> CreateWindowResizer(
115 aura::Window* window, 114 wm::WmWindow* window,
116 const gfx::Point& point_in_parent, 115 const gfx::Point& point_in_parent,
117 int window_component, 116 int window_component,
118 aura::client::WindowMoveSource source); 117 aura::client::WindowMoveSource source);
119 118
120 } // namespace ash 119 } // namespace ash
121 120
122 #endif // ASH_WM_WINDOW_RESIZER_H_ 121 #endif // ASH_WM_WINDOW_RESIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698