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

Unified Diff: services/ui/ws/drag_target_connection.h

Issue 2603893002: Remove mojo::Map. (Closed)
Patch Set: rebase Created 3 years, 12 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 | « services/ui/ws/drag_controller_unittest.cc ('k') | services/ui/ws/event_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/drag_target_connection.h
diff --git a/services/ui/ws/drag_target_connection.h b/services/ui/ws/drag_target_connection.h
index d3c22ce3a8b8a692a680a85cd94caed1b5d18a3e..a1fd04df47955725c300e55be0a45864064a5d32 100644
--- a/services/ui/ws/drag_target_connection.h
+++ b/services/ui/ws/drag_target_connection.h
@@ -5,10 +5,11 @@
#ifndef SERVICES_UI_WS_DRAG_TARGET_CONNECTION_H_
#define SERVICES_UI_WS_DRAG_TARGET_CONNECTION_H_
+#include <string>
+#include <unordered_map>
+
#include "base/bind.h"
#include "mojo/public/cpp/bindings/array.h"
-#include "mojo/public/cpp/bindings/map.h"
-#include "mojo/public/cpp/bindings/string.h"
#include "ui/gfx/geometry/point.h"
namespace ui {
@@ -37,7 +38,8 @@ class DragTargetConnection {
// equivalent in ui::WindowDropTarget to minimize the load of inter-process
// communication.)
virtual void PerformOnDragDropStart(
- mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data) = 0;
+ const std::unordered_map<std::string, std::vector<uint8_t>>&
+ mime_data) = 0;
// Next, on each time that the mouse cursor moves from one |window| to
// another, we send a DragEnter message. The value returned by |callback| is
« no previous file with comments | « services/ui/ws/drag_controller_unittest.cc ('k') | services/ui/ws/event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698