| OLD | NEW |
| 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 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/platform/Pasteboard.h" | 32 #include "core/platform/Pasteboard.h" |
| 33 | 33 |
| 34 #include "HTMLNames.h" | 34 #include "HTMLNames.h" |
| 35 #include "SVGNames.h" | 35 #include "SVGNames.h" |
| 36 #include "XLinkNames.h" | 36 #include "XLinkNames.h" |
| 37 #include "core/dom/Element.h" | 37 #include "core/dom/Element.h" |
| 38 #include "core/fetch/ImageResource.h" | 38 #include "core/fetch/ImageResource.h" |
| 39 #include "core/html/parser/HTMLParserIdioms.h" | 39 #include "core/html/parser/HTMLParserIdioms.h" |
| 40 #include "core/platform/chromium/ChromiumDataObject.h" | 40 #include "core/platform/chromium/ChromiumDataObject.h" |
| 41 #include "core/platform/graphics/Image.h" | |
| 42 #include "core/platform/graphics/skia/NativeImageSkia.h" | |
| 43 #include "core/rendering/RenderImage.h" | 41 #include "core/rendering/RenderImage.h" |
| 44 #include "platform/clipboard/ClipboardUtilities.h" | 42 #include "platform/clipboard/ClipboardUtilities.h" |
| 43 #include "platform/graphics/Image.h" |
| 44 #include "platform/graphics/skia/NativeImageSkia.h" |
| 45 #include "platform/weborigin/KURL.h" | 45 #include "platform/weborigin/KURL.h" |
| 46 #include "public/platform/Platform.h" | 46 #include "public/platform/Platform.h" |
| 47 #include "public/platform/WebDragData.h" | 47 #include "public/platform/WebDragData.h" |
| 48 #include "public/platform/WebString.h" | 48 #include "public/platform/WebString.h" |
| 49 #include "public/platform/WebURL.h" | 49 #include "public/platform/WebURL.h" |
| 50 #include "wtf/PassRefPtr.h" | 50 #include "wtf/PassRefPtr.h" |
| 51 #include "wtf/RefPtr.h" | 51 #include "wtf/RefPtr.h" |
| 52 | 52 |
| 53 namespace WebCore { | 53 namespace WebCore { |
| 54 | 54 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 String text = plainText; | 157 String text = plainText; |
| 158 #if OS(WIN) | 158 #if OS(WIN) |
| 159 replaceNewlinesWithWindowsStyleNewlines(text); | 159 replaceNewlinesWithWindowsStyleNewlines(text); |
| 160 #endif | 160 #endif |
| 161 replaceNBSPWithSpace(text); | 161 replaceNBSPWithSpace(text); |
| 162 | 162 |
| 163 blink::Platform::current()->clipboard()->writeHTML(markup, documentURL, text
, canSmartCopyOrDelete); | 163 blink::Platform::current()->clipboard()->writeHTML(markup, documentURL, text
, canSmartCopyOrDelete); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace WebCore | 166 } // namespace WebCore |
| OLD | NEW |