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 "webkit/api/public/WebData.h" | 7 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" |
8 #include "webkit/api/public/WebDragData.h" | 8 #include "third_party/WebKit/WebKit/chromium/public/WebDragData.h" |
9 #include "webkit/api/public/WebString.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
10 #include "webkit/api/public/WebURL.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
11 #include "webkit/api/public/WebVector.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/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 : identity(0), | 19 : identity(0), |
20 url(drag_data.url()), | 20 url(drag_data.url()), |
21 url_title(drag_data.urlTitle()), | 21 url_title(drag_data.urlTitle()), |
(...skipping 20 matching lines...) Expand all Loading... |
42 result.setURLTitle(url_title); | 42 result.setURLTitle(url_title); |
43 result.setFileExtension(file_extension); | 43 result.setFileExtension(file_extension); |
44 result.setFileNames(filenames); | 44 result.setFileNames(filenames); |
45 result.setPlainText(plain_text); | 45 result.setPlainText(plain_text); |
46 result.setHTMLText(text_html); | 46 result.setHTMLText(text_html); |
47 result.setHTMLBaseURL(html_base_url); | 47 result.setHTMLBaseURL(html_base_url); |
48 result.setFileContentFileName(file_description_filename); | 48 result.setFileContentFileName(file_description_filename); |
49 result.setFileContent(WebData(file_contents.data(), file_contents.size())); | 49 result.setFileContent(WebData(file_contents.data(), file_contents.size())); |
50 return result; | 50 return result; |
51 } | 51 } |
OLD | NEW |