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

Side by Side Diff: ash/wm/common/wm_toplevel_window_event_handler.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/wm_snap_to_pixel_layout_manager.h ('k') | ash/wm/common/wm_types.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_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 5 #ifndef ASH_WM_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
6 #define ASH_WM_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 6 #define ASH_WM_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_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/wm_display_observer.h" 11 #include "ash/wm/common/wm_display_observer.h"
12 #include "ash/wm/common/wm_types.h" 12 #include "ash/wm/common/wm_types.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 #include "ui/wm/public/window_move_client.h" 16 #include "ui/wm/public/window_move_client.h"
17 17
18 namespace ui { 18 namespace ui {
19 class KeyEvent; 19 class KeyEvent;
20 class LocatedEvent; 20 class LocatedEvent;
21 class MouseEvent; 21 class MouseEvent;
22 class GestureEvent; 22 class GestureEvent;
23 } 23 }
24 24
25 namespace ash { 25 namespace ash {
26 26
27 class WindowResizer; 27 class WindowResizer;
28 28
29 namespace wm { 29 namespace wm {
30 30
31 class WmGlobals; 31 class WmGlobals;
32 class WmWindow; 32 class WmWindow;
33 33
34 // WmToplevelWindowEventHandler handles dragging and resizing of top level 34 // WmToplevelWindowEventHandler handles dragging and resizing of top level
35 // windows. WmToplevelWindowEventHandler is forwarded events, such as from an 35 // windows. WmToplevelWindowEventHandler is forwarded events, such as from an
36 // EventHandler. 36 // EventHandler.
37 class ASH_WM_COMMON_EXPORT WmToplevelWindowEventHandler 37 class ASH_EXPORT WmToplevelWindowEventHandler : public WmDisplayObserver {
38 : public WmDisplayObserver {
39 public: 38 public:
40 // Describes what triggered ending the drag. 39 // Describes what triggered ending the drag.
41 enum class DragResult { 40 enum class DragResult {
42 // The drag successfully completed. 41 // The drag successfully completed.
43 SUCCESS, 42 SUCCESS,
44 43
45 REVERT, 44 REVERT,
46 45
47 // The underlying window was destroyed while the drag is in process. 46 // The underlying window was destroyed while the drag is in process.
48 WINDOW_DESTROYED 47 WINDOW_DESTROYED
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 121
123 EndClosure end_closure_; 122 EndClosure end_closure_;
124 123
125 DISALLOW_COPY_AND_ASSIGN(WmToplevelWindowEventHandler); 124 DISALLOW_COPY_AND_ASSIGN(WmToplevelWindowEventHandler);
126 }; 125 };
127 126
128 } // namespace wm 127 } // namespace wm
129 } // namespace ash 128 } // namespace ash
130 129
131 #endif // ASH_WM_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 130 #endif // ASH_WM_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_snap_to_pixel_layout_manager.h ('k') | ash/wm/common/wm_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698