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

Side by Side Diff: third_party/WebKit/Source/core/clipboard/DataObject.h

Issue 2582463002: Fix webkitGetEntry for non-native files. (Closed)
Patch Set: . Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. 2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // DataTransferItemList support. 64 // DataTransferItemList support.
65 size_t length() const; 65 size_t length() const;
66 DataObjectItem* item(unsigned long index); 66 DataObjectItem* item(unsigned long index);
67 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get this 67 // FIXME: Implement V8DataTransferItemList::indexedPropertyDeleter to get this
68 // called. 68 // called.
69 void deleteItem(unsigned long index); 69 void deleteItem(unsigned long index);
70 void clearAll(); 70 void clearAll();
71 // Returns null if an item already exists with the provided type. 71 // Returns null if an item already exists with the provided type.
72 DataObjectItem* add(const String& data, const String& type); 72 DataObjectItem* add(const String& data, const String& type);
73 DataObjectItem* add(File*); 73 DataObjectItem* add(File*);
74 DataObjectItem* add(File*, const String& fileSystemId);
74 75
75 // WebCore helpers. 76 // WebCore helpers.
76 void clearData(const String& type); 77 void clearData(const String& type);
77 78
78 Vector<String> types() const; 79 Vector<String> types() const;
79 String getData(const String& type) const; 80 String getData(const String& type) const;
80 void setData(const String& type, const String& data); 81 void setData(const String& type, const String& data);
81 82
82 void urlAndTitle(String& url, String* title = 0) const; 83 void urlAndTitle(String& url, String* title = 0) const;
83 void setURLAndTitle(const String& url, const String& title); 84 void setURLAndTitle(const String& url, const String& title);
84 void htmlAndBaseURL(String& html, KURL& baseURL) const; 85 void htmlAndBaseURL(String& html, KURL& baseURL) const;
85 void setHTMLAndBaseURL(const String& html, const KURL& baseURL); 86 void setHTMLAndBaseURL(const String& html, const KURL& baseURL);
86 87
87 // Used for dragging in files from the desktop. 88 // Used for dragging in files from the desktop.
88 bool containsFilenames() const; 89 bool containsFilenames() const;
89 Vector<String> filenames() const; 90 Vector<String> filenames() const;
90 void addFilename(const String& filename, const String& displayName); 91 void addFilename(const String& filename,
92 const String& displayName,
93 const String& fileSystemId);
91 94
92 // Used for dragging in filesystem from the desktop. 95 // Used for dragging in filesystem from the desktop.
93 void setFilesystemId(const String& fileSystemId) { 96 void setFilesystemId(const String& fileSystemId) {
94 m_filesystemId = fileSystemId; 97 m_filesystemId = fileSystemId;
95 } 98 }
96 const String& filesystemId() const { 99 const String& filesystemId() const {
97 ASSERT(!m_filesystemId.isEmpty()); 100 ASSERT(!m_filesystemId.isEmpty());
98 return m_filesystemId; 101 return m_filesystemId;
99 } 102 }
100 103
(...skipping 17 matching lines...) Expand all
118 HeapVector<Member<DataObjectItem>> m_itemList; 121 HeapVector<Member<DataObjectItem>> m_itemList;
119 122
120 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons 123 // State of Shift/Ctrl/Alt/Meta keys and Left/Right/Middle mouse buttons
121 int m_modifiers; 124 int m_modifiers;
122 String m_filesystemId; 125 String m_filesystemId;
123 }; 126 };
124 127
125 } // namespace blink 128 } // namespace blink
126 129
127 #endif 130 #endif
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/Source/core/clipboard/DataObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698