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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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/system_gesture_event_filter_unittest.cc ('k') | base/files/important_file_writer.h » ('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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 // Returns true if |location_in_screen| is over |component| in |window|. 150 // Returns true if |location_in_screen| is over |component| in |window|.
151 bool IsOverComponent(aura::Window* window, 151 bool IsOverComponent(aura::Window* window,
152 const gfx::Point& location_in_screen, 152 const gfx::Point& location_in_screen,
153 int component) const; 153 int component) const;
154 154
155 // Windows and direction to resize. 155 // Windows and direction to resize.
156 ResizeWindows windows_; 156 ResizeWindows windows_;
157 157
158 // Timer used before showing. 158 // Timer used before showing.
159 base::OneShotTimer<MultiWindowResizeController> show_timer_; 159 base::OneShotTimer show_timer_;
160 160
161 scoped_ptr<views::Widget> resize_widget_; 161 scoped_ptr<views::Widget> resize_widget_;
162 162
163 // If non-null we're in a resize loop. 163 // If non-null we're in a resize loop.
164 scoped_ptr<WorkspaceWindowResizer> window_resizer_; 164 scoped_ptr<WorkspaceWindowResizer> window_resizer_;
165 165
166 // Mouse coordinate passed to Show() in container's coodinates. 166 // Mouse coordinate passed to Show() in container's coodinates.
167 gfx::Point show_location_in_parent_; 167 gfx::Point show_location_in_parent_;
168 168
169 // Bounds the widget was last shown at in screen coordinates. 169 // Bounds the widget was last shown at in screen coordinates.
170 gfx::Rect show_bounds_in_screen_; 170 gfx::Rect show_bounds_in_screen_;
171 171
172 // Used to detect whether the mouse is over the windows. While 172 // Used to detect whether the mouse is over the windows. While
173 // |resize_widget_| is non-NULL (ie the widget is showing) we ignore calls 173 // |resize_widget_| is non-NULL (ie the widget is showing) we ignore calls
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 ash 180 } // namespace ash
181 181
182 #endif // ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_ 182 #endif // ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | base/files/important_file_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698