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

Side by Side Diff: ash/wm/common/dock/docked_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
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_COMMON_DOCK_DOCKED_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_COMMON_DOCK_DOCKED_WINDOW_RESIZER_H_
6 #define ASH_WM_COMMON_DOCK_DOCKED_WINDOW_RESIZER_H_ 6 #define ASH_WM_COMMON_DOCK_DOCKED_WINDOW_RESIZER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/wm/common/ash_wm_common_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/wm/common/dock/dock_types.h" 11 #include "ash/wm/common/dock/dock_types.h"
12 #include "ash/wm/common/window_resizer.h" 12 #include "ash/wm/common/window_resizer.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 15
16 namespace gfx { 16 namespace gfx {
17 class Point; 17 class Point;
18 class Rect; 18 class Rect;
19 } 19 }
20 20
21 namespace ash { 21 namespace ash {
22 class DockedWindowLayoutManager; 22 class DockedWindowLayoutManager;
23 23
24 // DockWindowResizer is used by ToplevelWindowEventFilter to handle dragging, 24 // DockWindowResizer is used by ToplevelWindowEventFilter to handle dragging,
25 // moving or resizing of a window while it is docked to the side of a screen. 25 // moving or resizing of a window while it is docked to the side of a screen.
26 class ASH_WM_COMMON_EXPORT DockedWindowResizer : public WindowResizer { 26 class ASH_EXPORT DockedWindowResizer : public WindowResizer {
27 public: 27 public:
28 ~DockedWindowResizer() override; 28 ~DockedWindowResizer() override;
29 29
30 // Creates a new DockWindowResizer. The caller takes ownership of the 30 // Creates a new DockWindowResizer. The caller takes ownership of the
31 // returned object. The ownership of |next_window_resizer| is taken by the 31 // returned object. The ownership of |next_window_resizer| is taken by the
32 // returned object. Returns NULL if not resizable. 32 // returned object. Returns NULL if not resizable.
33 static DockedWindowResizer* Create(WindowResizer* next_window_resizer, 33 static DockedWindowResizer* Create(WindowResizer* next_window_resizer,
34 wm::WindowState* window_state); 34 wm::WindowState* window_state);
35 35
36 // WindowResizer: 36 // WindowResizer:
(...skipping 55 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_COMMON_DOCK_DOCKED_WINDOW_RESIZER_H_ 101 #endif // ASH_WM_COMMON_DOCK_DOCKED_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/common/dock/docked_window_layout_manager_observer.h ('k') | ash/wm/common/drag_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698