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

Side by Side Diff: ash/wm/workspace/multi_window_resize_controller.h

Issue 10008084: Add ctrl+drag feature for allowing resizing window with exact positioning. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/window_resizer.cc ('k') | ash/wm/workspace/multi_window_resize_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 #ifndef ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_ 5 #ifndef ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_
6 #define ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_ 6 #define ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Shows the widget immediately. 119 // Shows the widget immediately.
120 void ShowNow(); 120 void ShowNow();
121 121
122 // Returns true if the widget is showing. 122 // Returns true if the widget is showing.
123 bool IsShowing() const; 123 bool IsShowing() const;
124 124
125 // Initiates a resize. 125 // Initiates a resize.
126 void StartResize(const gfx::Point& screen_location); 126 void StartResize(const gfx::Point& screen_location);
127 127
128 // Resizes to the new location. 128 // Resizes to the new location.
129 void Resize(const gfx::Point& screen_location); 129 void Resize(const gfx::Point& screen_location, int event_flags);
130 130
131 // Completes the resize. 131 // Completes the resize.
132 void CompleteResize(); 132 void CompleteResize(int event_flags);
133 133
134 // Cancels the resize. 134 // Cancels the resize.
135 void CancelResize(); 135 void CancelResize();
136 136
137 // Returns the bounds for the resize widget. 137 // Returns the bounds for the resize widget.
138 gfx::Rect CalculateResizeWidgetBounds(const gfx::Point& location) const; 138 gfx::Rect CalculateResizeWidgetBounds(const gfx::Point& location) const;
139 139
140 // Returns true if |screen_location| is over the resize windows (or the resize 140 // Returns true if |screen_location| is over the resize windows (or the resize
141 // widget itself). 141 // widget itself).
142 bool IsOverWindows(const gfx::Point& screen_location) const; 142 bool IsOverWindows(const gfx::Point& screen_location) const;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // to Show(). 174 // to Show().
175 scoped_ptr<views::MouseWatcher> mouse_watcher_; 175 scoped_ptr<views::MouseWatcher> mouse_watcher_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(MultiWindowResizeController); 177 DISALLOW_COPY_AND_ASSIGN(MultiWindowResizeController);
178 }; 178 };
179 179
180 } // namespace internal 180 } // namespace internal
181 } // namespace ash 181 } // namespace ash
182 182
183 #endif // ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_ 183 #endif // ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/window_resizer.cc ('k') | ash/wm/workspace/multi_window_resize_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698