Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor/Text/Util/TextUICocoaUtil/IDragDropMouseProcessor.cs')
-rw-r--r--src/Editor/Text/Util/TextUICocoaUtil/IDragDropMouseProcessor.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Editor/Text/Util/TextUICocoaUtil/IDragDropMouseProcessor.cs b/src/Editor/Text/Util/TextUICocoaUtil/IDragDropMouseProcessor.cs
new file mode 100644
index 0000000..185f0a8
--- /dev/null
+++ b/src/Editor/Text/Util/TextUICocoaUtil/IDragDropMouseProcessor.cs
@@ -0,0 +1,27 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+//
+namespace Microsoft.VisualStudio.Text.Utilities
+{
+ using System.Windows;
+ using System.Windows.Input;
+
+ /// <summary>
+ /// This interface is a used as an abstraction of the DragDropMouseProcessor so that it can be called from the left margin
+ /// to handle drag/drop.
+ /// </summary>
+ public interface IDragDropMouseProcessor
+ {
+ void DoPreprocessMouseLeftButtonDown(MouseButtonEventArgs e, Point position);
+ void DoPreprocessMouseLeftButtonUp(MouseButtonEventArgs e, Point position);
+ void DoPostprocessMouseLeftButtonUp(MouseButtonEventArgs e, Point position);
+ void DoPreprocessMouseMove(MouseEventArgs e, Point position);
+ void DoPreprocessDrop(DragEventArgs e, Point position);
+ void DoPreprocessDragEnter(DragEventArgs e, Point position);
+ void DoPreprocessDragLeave(DragEventArgs e);
+ void DoPreprocessDragOver(DragEventArgs e, Point position);
+ void DoPreprocessQueryContinueDrag(QueryContinueDragEventArgs e);
+ void DoPostprocessMouseLeave(MouseEventArgs e);
+ }
+} \ No newline at end of file