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

Side by Side Diff: ash/drag_drop/drag_drop_controller.h

Issue 13041002: Cancel drag upon screen lock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/drag_drop/drag_drop_controller.cc » ('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_DRAG_DROP_DRAG_DROP_CONTROLLER_H_ 5 #ifndef ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_
6 #define ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_ 6 #define ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 16 matching lines...) Expand all
27 27
28 namespace ash { 28 namespace ash {
29 29
30 namespace test { 30 namespace test {
31 class DragDropControllerTest; 31 class DragDropControllerTest;
32 } 32 }
33 33
34 namespace internal { 34 namespace internal {
35 35
36 class DragDropTracker; 36 class DragDropTracker;
37 class DragDropTrackerDelegate;
37 class DragImageView; 38 class DragImageView;
38 39
39 class ASH_EXPORT DragDropController 40 class ASH_EXPORT DragDropController
40 : public aura::client::DragDropClient, 41 : public aura::client::DragDropClient,
41 public ui::EventHandler, 42 public ui::EventHandler,
42 public ui::AnimationDelegate, 43 public ui::AnimationDelegate,
43 public aura::WindowObserver { 44 public aura::WindowObserver {
44 public: 45 public:
45 DragDropController(); 46 DragDropController();
46 virtual ~DragDropController(); 47 virtual ~DragDropController();
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 aura::Window* drag_source_window_; 121 aura::Window* drag_source_window_;
121 122
122 // Indicates whether the caller should be blocked on a drag/drop session. 123 // Indicates whether the caller should be blocked on a drag/drop session.
123 // Only be used for tests. 124 // Only be used for tests.
124 bool should_block_during_drag_drop_; 125 bool should_block_during_drag_drop_;
125 126
126 // Closure for quitting nested message loop. 127 // Closure for quitting nested message loop.
127 base::Closure quit_closure_; 128 base::Closure quit_closure_;
128 129
129 scoped_ptr<ash::internal::DragDropTracker> drag_drop_tracker_; 130 scoped_ptr<ash::internal::DragDropTracker> drag_drop_tracker_;
131 scoped_ptr<DragDropTrackerDelegate> drag_drop_window_delegate_;
130 132
131 ui::DragDropTypes::DragEventSource current_drag_event_source_; 133 ui::DragDropTypes::DragEventSource current_drag_event_source_;
132 134
133 // Holds a synthetic long tap event to be sent to the |drag_source_window_|. 135 // Holds a synthetic long tap event to be sent to the |drag_source_window_|.
134 // See comment in OnGestureEvent() on why we need this. 136 // See comment in OnGestureEvent() on why we need this.
135 scoped_ptr<ui::GestureEvent> pending_long_tap_; 137 scoped_ptr<ui::GestureEvent> pending_long_tap_;
136 138
137 base::WeakPtrFactory<DragDropController> weak_factory_; 139 base::WeakPtrFactory<DragDropController> weak_factory_;
138 140
139 DISALLOW_COPY_AND_ASSIGN(DragDropController); 141 DISALLOW_COPY_AND_ASSIGN(DragDropController);
140 }; 142 };
141 143
142 } // namespace internal 144 } // namespace internal
143 } // namespace ash 145 } // namespace ash
144 146
145 #endif // ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_ 147 #endif // ASH_DRAG_DROP_DRAG_DROP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/drag_drop/drag_drop_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698