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

Side by Side Diff: ui/aura/client/drag_drop_client.h

Issue 8450018: First shot at implementing drag&drop for Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed windows build errors Created 9 years, 1 month 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 | « ui/aura/client/aura_constants.cc ('k') | ui/aura/client/window_drag_drop_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_
6 #define UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_
7 #pragma once
8
9 #include "ui/aura/aura_export.h"
10 #include "ui/aura/event.h"
11
12 namespace ui {
13 class OSExchangeData;
14 }
15
16 namespace aura {
17
18 class Window;
19
20 // An interface implemented by an object that controls a drag and drop session.
21 class AURA_EXPORT DragDropClient {
22 public:
23 virtual ~DragDropClient() {}
24
25 // Initiates a drag and drop session
26 virtual void StartDragAndDrop(const ui::OSExchangeData& data,
27 int operation) = 0;
28
29 // Called when mouse is dragged during a drag and drop.
30 virtual void DragUpdate(aura::Window* target, const MouseEvent& event) = 0;
31
32 // Called when mouse is released during a drag and drop.
33 virtual void Drop(aura::Window* target, const MouseEvent& event) = 0;
34
35 // Called when a drag and drop session is cancelled.
36 virtual void DragCancel() = 0;
37 };
38
39 } // namespace aura
40
41 #endif // UI_AURA_CLIENT_DRAG_DROP_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/aura/client/window_drag_drop_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698