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

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

Issue 13896026: Stick windows to sides of workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dock with zero width (rebase) Created 7 years, 6 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 "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Invoked to complete the drag. 46 // Invoked to complete the drag.
47 virtual void CompleteDrag(int event_flags) = 0; 47 virtual void CompleteDrag(int event_flags) = 0;
48 48
49 // Reverts the drag. 49 // Reverts the drag.
50 virtual void RevertDrag() = 0; 50 virtual void RevertDrag() = 0;
51 51
52 // Returns the target window the resizer was created for. 52 // Returns the target window the resizer was created for.
53 virtual aura::Window* GetTarget() = 0; 53 virtual aura::Window* GetTarget() = 0;
54 54
55 // See comment for |Details::initial_location_in_parent|.
56 virtual const gfx::Point& GetInitialLocation() const = 0;
57
55 protected: 58 protected:
56 struct Details { 59 struct Details {
57 Details(); 60 Details();
58 Details(aura::Window* window, 61 Details(aura::Window* window,
59 const gfx::Point& location, 62 const gfx::Point& location,
60 int window_component, 63 int window_component,
61 aura::client::WindowMoveSource source); 64 aura::client::WindowMoveSource source);
62 ~Details(); 65 ~Details();
63 66
64 // The window we're resizing. 67 // The window we're resizing.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 }; 137 };
135 138
136 // Creates a WindowResizer for |window|. This can return a scoped_ptr 139 // Creates a WindowResizer for |window|. This can return a scoped_ptr
137 // initialized with NULL if |window| should not be resized nor dragged. 140 // initialized with NULL if |window| should not be resized nor dragged.
138 ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizer( 141 ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizer(
139 aura::Window* window, 142 aura::Window* window,
140 const gfx::Point& point_in_parent, 143 const gfx::Point& point_in_parent,
141 int window_component, 144 int window_component,
142 aura::client::WindowMoveSource source); 145 aura::client::WindowMoveSource source);
143 146
144 } // namespace aura 147 } // namespace ash
145 148
146 #endif // ASH_WM_WINDOW_RESIZER_H_ 149 #endif // ASH_WM_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698