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

Side by Side Diff: ash/wm/common/workspace/phantom_window_controller.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) 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_WORKSPACE_PHANTOM_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_WM_COMMON_WORKSPACE_PHANTOM_WINDOW_CONTROLLER_H_
6 #define ASH_WM_COMMON_WORKSPACE_PHANTOM_WINDOW_CONTROLLER_H_ 6 #define ASH_WM_COMMON_WORKSPACE_PHANTOM_WINDOW_CONTROLLER_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 "base/macros.h" 11 #include "base/macros.h"
12 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
13 13
14 namespace views { 14 namespace views {
15 class Widget; 15 class Widget;
16 } 16 }
17 17
18 namespace ash { 18 namespace ash {
19 namespace wm { 19 namespace wm {
20 class WmWindow; 20 class WmWindow;
21 } 21 }
22 22
23 // PhantomWindowController is responsible for showing a phantom representation 23 // PhantomWindowController is responsible for showing a phantom representation
24 // of a window. It's used to show a preview of how snapping or docking a window 24 // of a window. It's used to show a preview of how snapping or docking a window
25 // will affect the window's bounds. 25 // will affect the window's bounds.
26 class ASH_WM_COMMON_EXPORT PhantomWindowController { 26 class ASH_EXPORT PhantomWindowController {
27 public: 27 public:
28 explicit PhantomWindowController(wm::WmWindow* window); 28 explicit PhantomWindowController(wm::WmWindow* window);
29 29
30 // Hides the phantom window without any animation. 30 // Hides the phantom window without any animation.
31 ~PhantomWindowController(); 31 ~PhantomWindowController();
32 32
33 // Shows the phantom window and animates shrinking it to |bounds_in_screen|. 33 // Shows the phantom window and animates shrinking it to |bounds_in_screen|.
34 void Show(const gfx::Rect& bounds_in_screen); 34 void Show(const gfx::Rect& bounds_in_screen);
35 35
36 private: 36 private:
(...skipping 12 matching lines...) Expand all
49 49
50 // Phantom representation of the window. 50 // Phantom representation of the window.
51 std::unique_ptr<views::Widget> phantom_widget_; 51 std::unique_ptr<views::Widget> phantom_widget_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(PhantomWindowController); 53 DISALLOW_COPY_AND_ASSIGN(PhantomWindowController);
54 }; 54 };
55 55
56 } // namespace ash 56 } // namespace ash
57 57
58 #endif // ASH_WM_COMMON_WORKSPACE_PHANTOM_WINDOW_CONTROLLER_H_ 58 #endif // ASH_WM_COMMON_WORKSPACE_PHANTOM_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/common/workspace/multi_window_resize_controller.h ('k') | ash/wm/common/workspace/two_step_edge_cycler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698