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

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

Issue 2018753003: Moves ash/wm/common back into ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove BUILD.gn again 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
« no previous file with comments | « ash/wm/common/container_finder.h ('k') | ash/wm/common/dock/docked_window_layout_manager.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_COMMON_DEFAULT_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_COMMON_DEFAULT_WINDOW_RESIZER_H_
6 #define ASH_WM_COMMON_DEFAULT_WINDOW_RESIZER_H_ 6 #define ASH_WM_COMMON_DEFAULT_WINDOW_RESIZER_H_
7 7
8 #include "ash/wm/common/ash_wm_common_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/common/window_resizer.h" 9 #include "ash/wm/common/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 namespace wm {
14 class WmGlobals; 14 class WmGlobals;
15 } 15 }
16 16
17 // WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving 17 // WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving
18 // or resizing a window. All coordinates passed to this are in the parent 18 // or resizing a window. All coordinates passed to this are in the parent
19 // windows coordiantes. 19 // windows coordiantes.
20 class ASH_WM_COMMON_EXPORT DefaultWindowResizer : public WindowResizer { 20 class ASH_EXPORT DefaultWindowResizer : public WindowResizer {
21 public: 21 public:
22 ~DefaultWindowResizer() override; 22 ~DefaultWindowResizer() override;
23 23
24 // Creates a new DefaultWindowResizer. The caller takes ownership of the 24 // Creates a new DefaultWindowResizer. The caller takes ownership of the
25 // returned object. 25 // returned object.
26 static DefaultWindowResizer* Create(wm::WindowState* window_state); 26 static DefaultWindowResizer* Create(wm::WindowState* window_state);
27 27
28 // Returns true if the drag will result in changing the window in anyway. 28 // Returns true if the drag will result in changing the window in anyway.
29 bool is_resizable() const { return details().is_resizable; } 29 bool is_resizable() const { return details().is_resizable; }
30 30
(...skipping 13 matching lines...) Expand all
44 bool did_move_or_resize_; 44 bool did_move_or_resize_;
45 45
46 wm::WmGlobals* globals_; 46 wm::WmGlobals* globals_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(DefaultWindowResizer); 48 DISALLOW_COPY_AND_ASSIGN(DefaultWindowResizer);
49 }; 49 };
50 50
51 } // namespace aura 51 } // namespace aura
52 52
53 #endif // ASH_WM_COMMON_DEFAULT_WINDOW_RESIZER_H_ 53 #endif // ASH_WM_COMMON_DEFAULT_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/common/container_finder.h ('k') | ash/wm/common/dock/docked_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698