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

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

Issue 681913002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | 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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 22 matching lines...) Expand all
33 LEFT_RIGHT, 33 LEFT_RIGHT,
34 }; 34 };
35 35
36 // MultiWindowResizeController is responsible for determining and showing a 36 // MultiWindowResizeController is responsible for determining and showing a
37 // widget that allows resizing multiple windows at the same time. 37 // widget that allows resizing multiple windows at the same time.
38 // MultiWindowResizeController is driven by WorkspaceEventFilter. 38 // MultiWindowResizeController is driven by WorkspaceEventFilter.
39 class ASH_EXPORT MultiWindowResizeController : 39 class ASH_EXPORT MultiWindowResizeController :
40 public views::MouseWatcherListener, public aura::WindowObserver { 40 public views::MouseWatcherListener, public aura::WindowObserver {
41 public: 41 public:
42 MultiWindowResizeController(); 42 MultiWindowResizeController();
43 virtual ~MultiWindowResizeController(); 43 ~MultiWindowResizeController() override;
44 44
45 // If necessary, shows the resize widget. |window| is the window the mouse 45 // If necessary, shows the resize widget. |window| is the window the mouse
46 // is over, |component| the edge and |point| the location of the mouse. 46 // is over, |component| the edge and |point| the location of the mouse.
47 void Show(aura::Window* window, int component, const gfx::Point& point); 47 void Show(aura::Window* window, int component, const gfx::Point& point);
48 48
49 // Hides the resize widget. 49 // Hides the resize widget.
50 void Hide(); 50 void Hide();
51 51
52 // MouseWatcherListenre overrides: 52 // MouseWatcherListenre overrides:
53 virtual void MouseMovedOutOfHost() override; 53 void MouseMovedOutOfHost() override;
54 54
55 // WindowObserver overrides: 55 // WindowObserver overrides:
56 virtual void OnWindowDestroying(aura::Window* window) override; 56 void OnWindowDestroying(aura::Window* window) override;
57 57
58 private: 58 private:
59 friend class MultiWindowResizeControllerTest; 59 friend class MultiWindowResizeControllerTest;
60 60
61 // Used to track the two resizable windows and direction. 61 // Used to track the two resizable windows and direction.
62 struct ResizeWindows { 62 struct ResizeWindows {
63 ResizeWindows(); 63 ResizeWindows();
64 ~ResizeWindows(); 64 ~ResizeWindows();
65 65
66 // Returns true if |other| equals this ResizeWindows. This does *not* 66 // Returns true if |other| equals this ResizeWindows. This does *not*
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // |resize_widget_| is non-NULL (ie the widget is showing) we ignore calls 174 // |resize_widget_| is non-NULL (ie the widget is showing) we ignore calls
175 // to Show(). 175 // to Show().
176 scoped_ptr<views::MouseWatcher> mouse_watcher_; 176 scoped_ptr<views::MouseWatcher> mouse_watcher_;
177 177
178 DISALLOW_COPY_AND_ASSIGN(MultiWindowResizeController); 178 DISALLOW_COPY_AND_ASSIGN(MultiWindowResizeController);
179 }; 179 };
180 180
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 | « no previous file | ash/wm/workspace/multi_window_resize_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698