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

Side by Side Diff: ash/wm/workspace/workspace_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
« no previous file with comments | « ash/wm/workspace/workspace_manager.h ('k') | ash/wm/workspace/workspace_window_resizer.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 #ifndef ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/wm/window_resizer.h" 10 #include "ash/wm/window_resizer.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 virtual ~WorkspaceWindowResizer(); 44 virtual ~WorkspaceWindowResizer();
45 45
46 static WorkspaceWindowResizer* Create( 46 static WorkspaceWindowResizer* Create(
47 aura::Window* window, 47 aura::Window* window,
48 const gfx::Point& location_in_parent, 48 const gfx::Point& location_in_parent,
49 int window_component, 49 int window_component,
50 aura::client::WindowMoveSource source, 50 aura::client::WindowMoveSource source,
51 const std::vector<aura::Window*>& attached_windows); 51 const std::vector<aura::Window*>& attached_windows);
52 52
53 // Overridden from WindowResizer: 53 // WindowResizer:
54 virtual void Drag(const gfx::Point& location_in_parent, 54 virtual void Drag(const gfx::Point& location_in_parent,
55 int event_flags) OVERRIDE; 55 int event_flags) OVERRIDE;
56 virtual void CompleteDrag(int event_flags) OVERRIDE; 56 virtual void CompleteDrag(int event_flags) OVERRIDE;
57 virtual void RevertDrag() OVERRIDE; 57 virtual void RevertDrag() OVERRIDE;
58 virtual aura::Window* GetTarget() OVERRIDE; 58 virtual aura::Window* GetTarget() OVERRIDE;
59 59 virtual const gfx::Point& GetInitialLocation() const OVERRIDE;
60 const gfx::Point& GetInitialLocationInParentForTest() const {
61 return details_.initial_location_in_parent;
62 }
63 60
64 private: 61 private:
65 WorkspaceWindowResizer(const Details& details, 62 WorkspaceWindowResizer(const Details& details,
66 const std::vector<aura::Window*>& attached_windows); 63 const std::vector<aura::Window*>& attached_windows);
67 64
68 private: 65 private:
69 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, CancelSnapPhantom); 66 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, CancelSnapPhantom);
70 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, PhantomSnapMaxSize); 67 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, PhantomSnapMaxSize);
71 68
72 // Type of snapping. 69 // Type of snapping.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // should attach. 206 // should attach.
210 MatchedEdge magnetism_edge_; 207 MatchedEdge magnetism_edge_;
211 208
212 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); 209 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer);
213 }; 210 };
214 211
215 } // namespace internal 212 } // namespace internal
216 } // namespace ash 213 } // namespace ash
217 214
218 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 215 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_manager.h ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698