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

Side by Side Diff: Source/core/platform/Pasteboard.cpp

Issue 54053006: Move weborigin/ under platform/ so that it may someday call platform APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Stale refernence to weboriginexport in .gpyi Created 7 years, 1 month 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 | Annotate | Revision Log
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 24 matching lines...) Expand all
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" 41 #include "core/platform/graphics/Image.h"
42 #include "core/platform/graphics/skia/NativeImageSkia.h" 42 #include "core/platform/graphics/skia/NativeImageSkia.h"
43 #include "core/rendering/RenderImage.h" 43 #include "core/rendering/RenderImage.h"
44 #include "platform/clipboard/ClipboardUtilities.h" 44 #include "platform/clipboard/ClipboardUtilities.h"
45 #include "platform/weborigin/KURL.h"
45 #include "public/platform/Platform.h" 46 #include "public/platform/Platform.h"
46 #include "public/platform/WebClipboard.h" 47 #include "public/platform/WebClipboard.h"
47 #include "public/platform/WebDragData.h" 48 #include "public/platform/WebDragData.h"
48 #include "public/platform/WebString.h" 49 #include "public/platform/WebString.h"
49 #include "public/platform/WebURL.h" 50 #include "public/platform/WebURL.h"
50 #include "weborigin/KURL.h"
51 #include "wtf/PassRefPtr.h" 51 #include "wtf/PassRefPtr.h"
52 #include "wtf/RefPtr.h" 52 #include "wtf/RefPtr.h"
53 53
54 namespace WebCore { 54 namespace WebCore {
55 55
56 Pasteboard* Pasteboard::generalPasteboard() 56 Pasteboard* Pasteboard::generalPasteboard()
57 { 57 {
58 static Pasteboard* pasteboard = new Pasteboard; 58 static Pasteboard* pasteboard = new Pasteboard;
59 return pasteboard; 59 return pasteboard;
60 } 60 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 String text = plainText; 158 String text = plainText;
159 #if OS(WIN) 159 #if OS(WIN)
160 replaceNewlinesWithWindowsStyleNewlines(text); 160 replaceNewlinesWithWindowsStyleNewlines(text);
161 #endif 161 #endif
162 replaceNBSPWithSpace(text); 162 replaceNBSPWithSpace(text);
163 163
164 blink::Platform::current()->clipboard()->writeHTML(markup, documentURL, text , canSmartCopyOrDelete); 164 blink::Platform::current()->clipboard()->writeHTML(markup, documentURL, text , canSmartCopyOrDelete);
165 } 165 }
166 166
167 } // namespace WebCore 167 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/DragImage.cpp ('k') | Source/core/platform/chromium/ChromiumDataObjectItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698