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

Side by Side Diff: ash/wm/toplevel_window_event_handler.h

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 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_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 5 #ifndef ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
7 7
8 #include <memory>
8 #include <set> 9 #include <set>
9 10
10 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
11 #include "ash/display/window_tree_host_manager.h" 12 #include "ash/display/window_tree_host_manager.h"
12 #include "ash/wm/wm_types.h" 13 #include "ash/wm/wm_types.h"
13 #include "base/callback.h" 14 #include "base/callback.h"
14 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
15 #include "base/macros.h" 16 #include "base/macros.h"
16 #include "base/memory/scoped_ptr.h"
17 #include "ui/events/event_handler.h" 17 #include "ui/events/event_handler.h"
18 #include "ui/gfx/geometry/point.h" 18 #include "ui/gfx/geometry/point.h"
19 #include "ui/gfx/geometry/rect.h" 19 #include "ui/gfx/geometry/rect.h"
20 #include "ui/wm/public/window_move_client.h" 20 #include "ui/wm/public/window_move_client.h"
21 21
22 namespace aura { 22 namespace aura {
23 class Window; 23 class Window;
24 } 24 }
25 25
26 namespace ui { 26 namespace ui {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // Are we running a nested message loop from RunMoveLoop(). 113 // Are we running a nested message loop from RunMoveLoop().
114 bool in_move_loop_; 114 bool in_move_loop_;
115 115
116 // Is a window move/resize in progress because of gesture events? 116 // Is a window move/resize in progress because of gesture events?
117 bool in_gesture_drag_; 117 bool in_gesture_drag_;
118 118
119 // Whether the drag was reverted. Set by CompleteDrag(). 119 // Whether the drag was reverted. Set by CompleteDrag().
120 bool drag_reverted_; 120 bool drag_reverted_;
121 121
122 scoped_ptr<ScopedWindowResizer> window_resizer_; 122 std::unique_ptr<ScopedWindowResizer> window_resizer_;
123 123
124 base::Closure quit_closure_; 124 base::Closure quit_closure_;
125 125
126 // Used to track if this object is deleted while running a nested message 126 // Used to track if this object is deleted while running a nested message
127 // loop. If non-null the destructor sets this to true. 127 // loop. If non-null the destructor sets this to true.
128 bool* destroyed_; 128 bool* destroyed_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); 130 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler);
131 }; 131 };
132 132
133 } // namespace aura 133 } // namespace aura
134 134
135 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 135 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/wm/system_modal_container_layout_manager_unittest.cc ('k') | ash/wm/toplevel_window_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698