| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/glue/webdropdata.h" | 5 #include "webkit/glue/webdropdata.h" |
| 6 | 6 |
| 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" | 7 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebDragData.
h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
| 12 | 12 |
| 13 using WebKit::WebData; | 13 using WebKit::WebData; |
| 14 using WebKit::WebDragData; | 14 using WebKit::WebDragData; |
| 15 using WebKit::WebString; | 15 using WebKit::WebString; |
| 16 using WebKit::WebVector; | 16 using WebKit::WebVector; |
| 17 | 17 |
| 18 WebDropData::WebDropData(const WebDragData& drag_data) | 18 WebDropData::WebDropData(const WebDragData& drag_data) |
| 19 : url(drag_data.url()), | 19 : url(drag_data.url()), |
| 20 url_title(drag_data.urlTitle()), | 20 url_title(drag_data.urlTitle()), |
| 21 download_metadata(drag_data.downloadMetadata()), | 21 download_metadata(drag_data.downloadMetadata()), |
| (...skipping 26 matching lines...) Expand all Loading... |
| 48 result.setURLTitle(url_title); | 48 result.setURLTitle(url_title); |
| 49 result.setFileExtension(file_extension); | 49 result.setFileExtension(file_extension); |
| 50 result.setFilenames(filenames); | 50 result.setFilenames(filenames); |
| 51 result.setPlainText(plain_text); | 51 result.setPlainText(plain_text); |
| 52 result.setHTMLText(text_html); | 52 result.setHTMLText(text_html); |
| 53 result.setHTMLBaseURL(html_base_url); | 53 result.setHTMLBaseURL(html_base_url); |
| 54 result.setFileContentFilename(file_description_filename); | 54 result.setFileContentFilename(file_description_filename); |
| 55 result.setFileContent(WebData(file_contents.data(), file_contents.size())); | 55 result.setFileContent(WebData(file_contents.data(), file_contents.size())); |
| 56 return result; | 56 return result; |
| 57 } | 57 } |
| OLD | NEW |