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

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

Issue 339533002: setData() of DataTransfer has a void return type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed unnecessary argument. Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « Source/core/clipboard/Clipboard.cpp ('k') | Source/core/clipboard/DataObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void clearAll(); 68 void clearAll();
69 // Returns null if an item already exists with the provided type. 69 // Returns null if an item already exists with the provided type.
70 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String& type); 70 PassRefPtrWillBeRawPtr<DataObjectItem> add(const String& data, const String& type);
71 PassRefPtrWillBeRawPtr<DataObjectItem> add(PassRefPtrWillBeRawPtr<File>); 71 PassRefPtrWillBeRawPtr<DataObjectItem> add(PassRefPtrWillBeRawPtr<File>);
72 72
73 // WebCore helpers. 73 // WebCore helpers.
74 void clearData(const String& type); 74 void clearData(const String& type);
75 75
76 ListHashSet<String> types() const; 76 ListHashSet<String> types() const;
77 String getData(const String& type) const; 77 String getData(const String& type) const;
78 bool setData(const String& type, const String& data); 78 void setData(const String& type, const String& data);
79 79
80 void urlAndTitle(String& url, String* title = 0) const; 80 void urlAndTitle(String& url, String* title = 0) const;
81 void setURLAndTitle(const String& url, const String& title); 81 void setURLAndTitle(const String& url, const String& title);
82 void htmlAndBaseURL(String& html, KURL& baseURL) const; 82 void htmlAndBaseURL(String& html, KURL& baseURL) const;
83 void setHTMLAndBaseURL(const String& html, const KURL& baseURL); 83 void setHTMLAndBaseURL(const String& html, const KURL& baseURL);
84 84
85 // Used for dragging in files from the desktop. 85 // Used for dragging in files from the desktop.
86 bool containsFilenames() const; 86 bool containsFilenames() const;
87 Vector<String> filenames() const; 87 Vector<String> filenames() const;
88 void addFilename(const String& filename, const String& displayName); 88 void addFilename(const String& filename, const String& displayName);
(...skipping 21 matching lines...) Expand all
110 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList; 110 WillBeHeapVector<RefPtrWillBeMember<DataObjectItem> > m_itemList;
111 111
112 // State of Shift/Ctrl/Alt/Meta keys. 112 // State of Shift/Ctrl/Alt/Meta keys.
113 int m_modifierKeyState; 113 int m_modifierKeyState;
114 String m_filesystemId; 114 String m_filesystemId;
115 }; 115 };
116 116
117 } // namespace WebCore 117 } // namespace WebCore
118 118
119 #endif 119 #endif
OLDNEW
« no previous file with comments | « Source/core/clipboard/Clipboard.cpp ('k') | Source/core/clipboard/DataObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698