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

Unified Diff: ui/aura/client/drag_drop_delegate.h

Issue 8949010: Rename WindowDragDropDelegate->DragDropDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/client/drag_drop_client.cc ('k') | ui/aura/client/drag_drop_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/drag_drop_delegate.h
===================================================================
--- ui/aura/client/drag_drop_delegate.h (revision 114582)
+++ ui/aura/client/drag_drop_delegate.h (working copy)
@@ -2,18 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_AURA_CLIENT_WINDOW_DRAG_DROP_DELEGATE_H_
-#define UI_AURA_CLIENT_WINDOW_DRAG_DROP_DELEGATE_H_
+#ifndef UI_AURA_CLIENT_DRAG_DROP_DELEGATE_H_
+#define UI_AURA_CLIENT_DRAG_DROP_DELEGATE_H_
#pragma once
#include "ui/aura/aura_export.h"
namespace aura {
-
class DropTargetEvent;
+class Window;
+namespace client {
// Delegate interface for drag and drop actions on aura::Window.
-class AURA_EXPORT WindowDragDropDelegate {
+class AURA_EXPORT DragDropDelegate {
public:
// OnDragEntered is invoked when the mouse enters this window during a drag &
// drop session. This is immediately followed by an invocation of
@@ -35,9 +36,14 @@
virtual int OnPerformDrop(const DropTargetEvent& event) = 0;
protected:
- virtual ~WindowDragDropDelegate() {}
+ virtual ~DragDropDelegate() {}
};
+AURA_EXPORT void SetDragDropDelegate(Window* window,
+ DragDropDelegate* delegate);
+AURA_EXPORT DragDropDelegate* GetDragDropDelegate(Window* window);
+
+} // namespace client
} // namespace aura
-#endif // UI_AURA_CLIENT_WINDOW_DRAG_DROP_DELEGATE_H_
+#endif // UI_AURA_CLIENT_DRAG_DROP_DELEGATE_H_
« no previous file with comments | « ui/aura/client/drag_drop_client.cc ('k') | ui/aura/client/drag_drop_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698