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

Side by Side Diff: ash/wm/dock/docked_window_resizer.h

Issue 645513008: 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_DOCK_DOCK_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_
6 #define ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ 6 #define ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_
7 7
8 #include "ash/wm/dock/dock_types.h" 8 #include "ash/wm/dock/dock_types.h"
9 #include "ash/wm/window_resizer.h" 9 #include "ash/wm/window_resizer.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 class Point; 15 class Point;
16 class Rect; 16 class Rect;
17 } 17 }
18 18
19 namespace aura { 19 namespace aura {
20 class RootWindow; 20 class RootWindow;
21 } 21 }
22 22
23 namespace ash { 23 namespace ash {
24 class DockedWindowLayoutManager; 24 class DockedWindowLayoutManager;
25 25
26 // DockWindowResizer is used by ToplevelWindowEventFilter to handle dragging, 26 // DockWindowResizer is used by ToplevelWindowEventFilter to handle dragging,
27 // moving or resizing of a window while it is docked to the side of a screen. 27 // moving or resizing of a window while it is docked to the side of a screen.
28 class ASH_EXPORT DockedWindowResizer : public WindowResizer { 28 class ASH_EXPORT DockedWindowResizer : public WindowResizer {
29 public: 29 public:
30 virtual ~DockedWindowResizer(); 30 ~DockedWindowResizer() override;
31 31
32 // Creates a new DockWindowResizer. The caller takes ownership of the 32 // Creates a new DockWindowResizer. The caller takes ownership of the
33 // returned object. The ownership of |next_window_resizer| is taken by the 33 // returned object. The ownership of |next_window_resizer| is taken by the
34 // returned object. Returns NULL if not resizable. 34 // returned object. Returns NULL if not resizable.
35 static DockedWindowResizer* Create(WindowResizer* next_window_resizer, 35 static DockedWindowResizer* Create(WindowResizer* next_window_resizer,
36 wm::WindowState* window_state); 36 wm::WindowState* window_state);
37 37
38 // WindowResizer: 38 // WindowResizer:
39 virtual void Drag(const gfx::Point& location, int event_flags) override; 39 void Drag(const gfx::Point& location, int event_flags) override;
40 virtual void CompleteDrag() override; 40 void CompleteDrag() override;
41 virtual void RevertDrag() override; 41 void RevertDrag() override;
42 42
43 private: 43 private:
44 // Creates DockWindowResizer that adds the ability to attach / detach 44 // Creates DockWindowResizer that adds the ability to attach / detach
45 // windows to / from the dock. This object takes ownership of 45 // windows to / from the dock. This object takes ownership of
46 // |next_window_resizer|. 46 // |next_window_resizer|.
47 DockedWindowResizer(WindowResizer* next_window_resizer, 47 DockedWindowResizer(WindowResizer* next_window_resizer,
48 wm::WindowState* window_state); 48 wm::WindowState* window_state);
49 49
50 // If the provided window bounds should snap to the side of a screen, 50 // If the provided window bounds should snap to the side of a screen,
51 // returns the offset that gives the necessary adjustment to snap. 51 // returns the offset that gives the necessary adjustment to snap.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 bool was_bounds_changed_by_user_; 92 bool was_bounds_changed_by_user_;
93 93
94 base::WeakPtrFactory<DockedWindowResizer> weak_ptr_factory_; 94 base::WeakPtrFactory<DockedWindowResizer> weak_ptr_factory_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(DockedWindowResizer); 96 DISALLOW_COPY_AND_ASSIGN(DockedWindowResizer);
97 }; 97 };
98 98
99 } // namespace ash 99 } // namespace ash
100 100
101 #endif // ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ 101 #endif // ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/dock/docked_window_layout_manager_unittest.cc ('k') | ash/wm/dock/docked_window_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698