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

Unified Diff: services/ui/ws/current_drag_operation_source.h

Issue 2266603002: mus: Implement interwindow drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove stray mark Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: services/ui/ws/current_drag_operation_source.h
diff --git a/services/ui/ws/current_drag_operation_source.h b/services/ui/ws/current_drag_operation_source.h
new file mode 100644
index 0000000000000000000000000000000000000000..6bebc86bfd00132e5dc19e8a6b732a79f021b3be
--- /dev/null
+++ b/services/ui/ws/current_drag_operation_source.h
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_UI_WS_CURRENT_DRAG_OPERATION_SOURCE_H_
+#define SERVICES_UI_WS_CURRENT_DRAG_OPERATION_SOURCE_H_
+
+namespace ui {
+namespace ws {
+
+class DragTargetConnection;
+class ServerWindow;
+struct WindowId;
+
+// An interface implemented by the object that caused a CurrentDragOperation to
+// exist, and which acts as a delegate to it.
+class CurrentDragOperationSource {
+ public:
+ virtual ~CurrentDragOperationSource() {}
+
+ // Called when a drag operation is completed.
+ virtual void OnDragOver(bool success) = 0;
sky 2016/09/06 21:11:27 On initial look I read this as 'drag moved ontop o
+
+ virtual ServerWindow* GetWindowById(const WindowId& id) = 0;
+
+ virtual DragTargetConnection* GetDragTargetWithRoot(
sky 2016/09/06 21:11:27 Document what this should do. I assume find deepes
+ const ServerWindow* window) = 0;
+};
+
+} // namespace ws
+} // namespace ui
+
+#endif // SERVICES_UI_WS_CURRENT_DRAG_OPERATION_SOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698