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

Side by Side Diff: third_party/WebKit/public/platform/WebClipboard.h

Issue 2146323002: Expose RTF content on the clipboard as strings to pages when pasting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: BrowserTestClipboardScope. Created 4 years, 5 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 | « third_party/WebKit/Source/platform/clipboard/ClipboardMimeTypes.cpp ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 Buffer, bool* containsFilenames) { return WebVector<WebString>(); } 70 Buffer, bool* containsFilenames) { return WebVector<WebString>(); }
71 virtual WebString readPlainText(Buffer) { return WebString(); } 71 virtual WebString readPlainText(Buffer) { return WebString(); }
72 // fragmentStart and fragmentEnd are indexes into the returned markup that 72 // fragmentStart and fragmentEnd are indexes into the returned markup that
73 // indicate the start and end of the fragment if the returned markup 73 // indicate the start and end of the fragment if the returned markup
74 // contains additional context. If there is no additional context, 74 // contains additional context. If there is no additional context,
75 // fragmentStart will be zero and fragmentEnd will be the same as the length 75 // fragmentStart will be zero and fragmentEnd will be the same as the length
76 // of the returned markup. 76 // of the returned markup.
77 virtual WebString readHTML( 77 virtual WebString readHTML(
78 Buffer buffer, WebURL* pageURL, unsigned* fragmentStart, 78 Buffer buffer, WebURL* pageURL, unsigned* fragmentStart,
79 unsigned* fragmentEnd) { return WebString(); } 79 unsigned* fragmentEnd) { return WebString(); }
80 virtual WebString readRTF(Buffer) { return WebString(); }
80 virtual WebBlobInfo readImage(Buffer) { return WebBlobInfo(); } 81 virtual WebBlobInfo readImage(Buffer) { return WebBlobInfo(); }
81 virtual WebString readCustomData( 82 virtual WebString readCustomData(
82 Buffer, const WebString& type) { return WebString(); } 83 Buffer, const WebString& type) { return WebString(); }
83 84
84 virtual void writePlainText(const WebString&) { } 85 virtual void writePlainText(const WebString&) { }
85 virtual void writeHTML( 86 virtual void writeHTML(
86 const WebString& htmlText, const WebURL&, 87 const WebString& htmlText, const WebURL&,
87 const WebString& plainText, bool writeSmartPaste) { } 88 const WebString& plainText, bool writeSmartPaste) { }
88 virtual void writeImage( 89 virtual void writeImage(
89 const WebImage&, const WebURL&, const WebString& title) { } 90 const WebImage&, const WebURL&, const WebString& title) { }
90 virtual void writeDataObject(const WebDragData&) { } 91 virtual void writeDataObject(const WebDragData&) { }
91 92
92 protected: 93 protected:
93 ~WebClipboard() { } 94 ~WebClipboard() { }
94 }; 95 };
95 96
96 } // namespace blink 97 } // namespace blink
97 98
98 #endif 99 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/clipboard/ClipboardMimeTypes.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698