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

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

Issue 11421006: Desktop aura: Break aura::Window::SetParent in two. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ash_unittests Created 8 years 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 | « ash/drag_drop/drag_drop_controller.cc ('k') | ash/drag_drop/drag_drop_tracker.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_TRACKER_H_ 5 #ifndef ASH_DRAG_DROP_DRAG_DROP_TRACKER_H_
6 #define ASH_DRAG_DROP_DRAG_DROP_TRACKER_H_ 6 #define ASH_DRAG_DROP_DRAG_DROP_TRACKER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/base/events/event.h" 11 #include "ui/base/events/event.h"
12 12
13 namespace aura { 13 namespace aura {
14 class RootWindow;
14 class Window; 15 class Window;
15 } 16 }
16 17
17 namespace ash { 18 namespace ash {
18 namespace internal { 19 namespace internal {
19 20
20 // Provides functions for handling drag events inside and outside the root 21 // Provides functions for handling drag events inside and outside the root
21 // window where drag is started. This internally sets up a capture window for 22 // window where drag is started. This internally sets up a capture window for
22 // tracking drag events outside the root window where drag is initiated. 23 // tracking drag events outside the root window where drag is initiated.
23 // ash/wm/coordinate_conversion.h is used internally and only X11 environment 24 // ash/wm/coordinate_conversion.h is used internally and only X11 environment
24 // is supported for now. 25 // is supported for now.
25 class ASH_EXPORT DragDropTracker { 26 class ASH_EXPORT DragDropTracker {
26 public: 27 public:
27 DragDropTracker(); 28 explicit DragDropTracker(aura::RootWindow* context_root);
28 ~DragDropTracker(); 29 ~DragDropTracker();
29 30
30 aura::Window* capture_window() { return capture_window_.get(); } 31 aura::Window* capture_window() { return capture_window_.get(); }
31 32
32 // Tells our |capture_window_| to take capture. This is not done right at 33 // Tells our |capture_window_| to take capture. This is not done right at
33 // creation to give the caller a chance to perform any operations needed 34 // creation to give the caller a chance to perform any operations needed
34 // before the capture is transfered. 35 // before the capture is transfered.
35 void TakeCapture(); 36 void TakeCapture();
36 37
37 // Gets the target located at |event| in the coordinates of the active root 38 // Gets the target located at |event| in the coordinates of the active root
(...skipping 10 matching lines...) Expand all
48 // A window for capturing drag events while dragging. 49 // A window for capturing drag events while dragging.
49 scoped_ptr<aura::Window> capture_window_; 50 scoped_ptr<aura::Window> capture_window_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(DragDropTracker); 52 DISALLOW_COPY_AND_ASSIGN(DragDropTracker);
52 }; 53 };
53 54
54 } // namespace internal 55 } // namespace internal
55 } // namespace ash 56 } // namespace ash
56 57
57 #endif // ASH_DRAG_DROP_DRAG_DROP_TRACKER_H_ 58 #endif // ASH_DRAG_DROP_DRAG_DROP_TRACKER_H_
OLDNEW
« no previous file with comments | « ash/drag_drop/drag_drop_controller.cc ('k') | ash/drag_drop/drag_drop_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698