public ClipboardUserInterfaceInteractionMediator( IClipboardCopyInterceptor clipboardCopyInterceptor, IPasteCombinationDurationMediator pasteCombinationDurationMediator, IPasteHotkeyInterceptor pasteHotkeyInterceptor, IClipboardPersistanceService clipboardPersistanceService, IClipboardDataControlPackageFactory clipboardDataControlPackageFactory, IKeyInterceptor hotkeyInterceptor, IMouseWheelHook mouseWheelHook, ILogger logger, IClipboardInjectionService clipboardInjectionService) { this.clipboardCopyInterceptor = clipboardCopyInterceptor; this.pasteCombinationDurationMediator = pasteCombinationDurationMediator; this.pasteHotkeyInterceptor = pasteHotkeyInterceptor; this.clipboardPersistanceService = clipboardPersistanceService; this.clipboardDataControlPackageFactory = clipboardDataControlPackageFactory; this.hotkeyInterceptor = hotkeyInterceptor; this.mouseWheelHook = mouseWheelHook; this.logger = logger; this.clipboardInjectionService = clipboardInjectionService; clipboardPackages = new List <IClipboardDataControlPackage>(); SetupHotkeyInterceptor(); SetupMouseHook(); }
static void RaiseHotkeyFired(IPasteHotkeyInterceptor fakePasteHotkeyInterceptor) { fakePasteHotkeyInterceptor.HotkeyFired += Raise.EventWith( fakePasteHotkeyInterceptor, new HotkeyFiredArgument( Key.V, true)); }
static void RaiseHotkeyFired(IPasteHotkeyInterceptor fakePasteHotkeyInterceptor) { fakePasteHotkeyInterceptor.HotkeyFired += Raise.EventWith( fakePasteHotkeyInterceptor, new HotkeyFiredArgument( KeyboardNativeApi.VK_KEY_V, true)); }
public ClipboardPasteService( IPasteHotkeyInterceptor pasteHotkeyInterceptor, ILogger logger, IMainWindowHandleContainer handleContainer) { this.pasteHotkeyInterceptor = pasteHotkeyInterceptor; this.logger = logger; this.handleContainer = handleContainer; }
public PasteDetectionHandler( IKeyboardDominanceWatcher keyboardDominanceWatcher, IPasteHotkeyInterceptor pasteHotkeyInterceptor) { this.keyboardDominanceWatcher = keyboardDominanceWatcher; this.pasteHotkeyInterceptor = pasteHotkeyInterceptor; SetupPasteHotkeyInterceptor(); }
public ClipboardUserInterfaceMediator( IClipboardCopyInterceptor clipboardCopyInterceptor, IPasteCombinationDurationMediator pasteCombinationDurationMediator, IPasteHotkeyInterceptor pasteHotkeyInterceptor, IClipboardDataControlPackageFactory clipboardDataControlPackageFactory) { this.clipboardCopyInterceptor = clipboardCopyInterceptor; this.pasteCombinationDurationMediator = pasteCombinationDurationMediator; this.pasteHotkeyInterceptor = pasteHotkeyInterceptor; this.clipboardDataControlPackageFactory = clipboardDataControlPackageFactory; clipboardPackages = new List <IClipboardDataControlPackage>(); }
public ClipboardUserInterfaceMediator( IClipboardCopyInterceptor clipboardCopyInterceptor, IPasteCombinationDurationMediator pasteCombinationDurationMediator, IPasteHotkeyInterceptor pasteHotkeyInterceptor, IClipboardDataControlPackageFactory clipboardDataControlPackageFactory) { this.clipboardCopyInterceptor = clipboardCopyInterceptor; this.pasteCombinationDurationMediator = pasteCombinationDurationMediator; this.pasteHotkeyInterceptor = pasteHotkeyInterceptor; this.clipboardDataControlPackageFactory = clipboardDataControlPackageFactory; clipboardPackages = new List<IClipboardDataControlPackage>(); }
public PasteCombinationDurationMediator( IPasteHotkeyInterceptor pasteHotkeyInterceptor, IConsumerThreadLoop threadLoop, IThreadDelay threadDelay, IMainThreadInvoker mainThreadInvoker, ILogger logger) { this.pasteHotkeyInterceptor = pasteHotkeyInterceptor; this.threadLoop = threadLoop; this.threadDelay = threadDelay; this.mainThreadInvoker = mainThreadInvoker; this.logger = logger; threadCancellationTokenSource = new CancellationTokenSource(); }