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

Side by Side Diff: ash/common/wm/default_window_resizer.h

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests Created 4 years, 6 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) 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_COMMON_WM_DEFAULT_WINDOW_RESIZER_H_ 5 #ifndef ASH_COMMON_WM_DEFAULT_WINDOW_RESIZER_H_
6 #define ASH_COMMON_WM_DEFAULT_WINDOW_RESIZER_H_ 6 #define ASH_COMMON_WM_DEFAULT_WINDOW_RESIZER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/wm/window_resizer.h" 9 #include "ash/common/wm/window_resizer.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace ash { 12 namespace ash {
13 namespace wm { 13 class WmShell;
14 class WmGlobals;
15 }
16 14
17 // WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving 15 // WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving
18 // or resizing a window. All coordinates passed to this are in the parent 16 // or resizing a window. All coordinates passed to this are in the parent
19 // windows coordiantes. 17 // windows coordiantes.
20 class ASH_EXPORT DefaultWindowResizer : public WindowResizer { 18 class ASH_EXPORT DefaultWindowResizer : public WindowResizer {
21 public: 19 public:
22 ~DefaultWindowResizer() override; 20 ~DefaultWindowResizer() override;
23 21
24 // Creates a new DefaultWindowResizer. The caller takes ownership of the 22 // Creates a new DefaultWindowResizer. The caller takes ownership of the
25 // returned object. 23 // returned object.
(...skipping 10 matching lines...) Expand all
36 void Drag(const gfx::Point& location, int event_flags) override; 34 void Drag(const gfx::Point& location, int event_flags) override;
37 void CompleteDrag() override; 35 void CompleteDrag() override;
38 void RevertDrag() override; 36 void RevertDrag() override;
39 37
40 private: 38 private:
41 explicit DefaultWindowResizer(wm::WindowState* window_state); 39 explicit DefaultWindowResizer(wm::WindowState* window_state);
42 40
43 // Set to true once Drag() is invoked and the bounds of the window change. 41 // Set to true once Drag() is invoked and the bounds of the window change.
44 bool did_move_or_resize_; 42 bool did_move_or_resize_;
45 43
46 wm::WmGlobals* globals_; 44 WmShell* shell_;
47 45
48 DISALLOW_COPY_AND_ASSIGN(DefaultWindowResizer); 46 DISALLOW_COPY_AND_ASSIGN(DefaultWindowResizer);
49 }; 47 };
50 48
51 } // namespace aura 49 } // namespace aura
52 50
53 #endif // ASH_COMMON_WM_DEFAULT_WINDOW_RESIZER_H_ 51 #endif // ASH_COMMON_WM_DEFAULT_WINDOW_RESIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698