OLD | NEW |
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 Loading... |
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 |
OLD | NEW |