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

Unified Diff: ui/views/cocoa/bridged_native_widget.h

Issue 1964283002: MacViews: Implemented Drag & Drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: ui/views/cocoa/bridged_native_widget.h
diff --git a/ui/views/cocoa/bridged_native_widget.h b/ui/views/cocoa/bridged_native_widget.h
index e4df8e78faa70618d410ebea6d4e33daf9923193..a9e4a0886fd7094ad97c2ce132673bc0627894cd 100644
--- a/ui/views/cocoa/bridged_native_widget.h
+++ b/ui/views/cocoa/bridged_native_widget.h
@@ -17,6 +17,7 @@
#include "ui/compositor/layer_owner.h"
#import "ui/views/cocoa/bridged_native_widget_owner.h"
#import "ui/views/cocoa/cocoa_mouse_capture_delegate.h"
+#import "ui/views/cocoa/cocoa_drag_drop_manager.h"
#import "ui/views/focus/focus_manager.h"
#include "ui/views/views_export.h"
#include "ui/views/widget/widget.h"
@@ -171,6 +172,8 @@ class VIEWS_EXPORT BridgedNativeWidget
TooltipManager* tooltip_manager() { return tooltip_manager_.get(); }
+ CocoaDragDropManager* drag_drop_manager() { return drag_drop_manager_.get(); }
+
// The parent widget specified in Widget::InitParams::parent. If non-null, the
// parent will close children before the parent closes, and children will be
// raised above their parent when window z-order changes.
@@ -263,6 +266,7 @@ class VIEWS_EXPORT BridgedNativeWidget
std::unique_ptr<ui::InputMethod> input_method_;
std::unique_ptr<CocoaMouseCapture> mouse_capture_;
std::unique_ptr<TooltipManager> tooltip_manager_;
+ std::unique_ptr<CocoaDragDropManager> drag_drop_manager_;
FocusManager* focus_manager_; // Weak. Owned by our Widget.
Widget::InitParams::Type widget_type_;

Powered by Google App Engine
This is Rietveld 408576698