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

Unified Diff: content/public/test/browser_test_utils.h

Issue 2622733002: Mac Support for drag-and-drop tests that start dragging via mouse simulation.
Patch Set: . Created 3 years, 11 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_utils.h
diff --git a/content/public/test/browser_test_utils.h b/content/public/test/browser_test_utils.h
index b4908997a25f3e6506b2f5f0565b50febfa9b730..927ee15e1e3c7721d75bdb2a788a0c274df25cdf 100644
--- a/content/public/test/browser_test_utils.h
+++ b/content/public/test/browser_test_utils.h
@@ -27,6 +27,7 @@
#include "content/public/common/page_type.h"
#include "ipc/message_filter.h"
#include "storage/common/fileapi/file_system_types.h"
+#include "third_party/WebKit/public/platform/WebDragOperation.h"
#include "third_party/WebKit/public/platform/WebInputEvent.h"
#include "third_party/WebKit/public/platform/WebMouseEvent.h"
#include "ui/accessibility/ax_node_data.h"
@@ -760,6 +761,15 @@ class PwnMessageHelper {
DISALLOW_COPY_AND_ASSIGN(PwnMessageHelper);
};
+// DragStartCallback should return |true| if the callback handled the drag start
+// request and wants to suppress passing the drag start request to the OS layer.
+// Otherwise (to continue handling the drag start request as usual), return
+// false.
+using DragStartCallback =
+ base::Callback<bool(const DropData& drop_data,
+ blink::WebDragOperationsMask drag_operations_mask)>;
+void RegisterDragStartCallback(DragStartCallback callback);
+
} // namespace content
#endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698