OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |