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

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

Issue 621133002: replace OVERRIDE and FINAL with override and final in ash/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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"
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 virtual ~DockedWindowResizer(); 30 virtual ~DockedWindowResizer();
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 virtual void Drag(const gfx::Point& location, int event_flags) override;
40 virtual void CompleteDrag() OVERRIDE; 40 virtual void CompleteDrag() override;
41 virtual void RevertDrag() OVERRIDE; 41 virtual 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