diff options
Diffstat (limited to 'widget/nsBaseWidget.cpp')
-rw-r--r-- | widget/nsBaseWidget.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/widget/nsBaseWidget.cpp b/widget/nsBaseWidget.cpp index d3cdf72cfc..c72f0364bc 100644 --- a/widget/nsBaseWidget.cpp +++ b/widget/nsBaseWidget.cpp @@ -2133,6 +2133,16 @@ nsBaseWidget::UpdateSynthesizedTouchState(MultiTouchInput* aState, return inputToDispatch; } +nsresult +nsBaseWidget::AsyncEnableDragDrop(bool aEnable) +{ + RefPtr<nsBaseWidget> kungFuDeathGrip = this; + return NS_IdleDispatchToCurrentThread( + NS_NewRunnableFunction([this, aEnable, kungFuDeathGrip]() { + EnableDragDrop(aEnable); + })); +} + void nsBaseWidget::RegisterPluginWindowForRemoteUpdates() { |