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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataTransfer.h

Issue 2875013002: DataTransfer: Make |types| be a FrozenArray<DOMString>. (Closed)
Patch Set: Fix interactive_ui_tests Created 3 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: third_party/WebKit/Source/core/clipboard/DataTransfer.h
diff --git a/third_party/WebKit/Source/core/clipboard/DataTransfer.h b/third_party/WebKit/Source/core/clipboard/DataTransfer.h
index 18a2b2f3f3db0858372f5702a2204401109d4176..57327784edba83c41bc8f3d68422ee47526d3529 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransfer.h
+++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.h
@@ -87,8 +87,10 @@ class CORE_EXPORT DataTransfer final
String getData(const String& type) const;
void setData(const String& type, const String& data);
- // extensions beyond IE's API
- Vector<String> types() const;
+ // Used by the bindings code to determine whether to call types() again.
+ bool hasDataStoreItemListChanged() const;
+
+ Vector<String> types();
FileList* files() const;
IntPoint DragLocation() const { return drag_loc_; }
@@ -146,6 +148,8 @@ class CORE_EXPORT DataTransfer final
DataTransferType transfer_type_;
Member<DataObject> data_object_;
+ bool data_store_item_list_changed_;
+
IntPoint drag_loc_;
Member<ImageResourceContent> drag_image_;
Member<Node> drag_image_element_;

Powered by Google App Engine
This is Rietveld 408576698