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

Side by Side Diff: webkit/glue/webclipboard_impl.h

Issue 8775025: Add glue for supporting custom MIME types in DataTransfer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years 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 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef WEBCLIPBOARD_IMPL_H_ 5 #ifndef WEBCLIPBOARD_IMPL_H_
6 #define WEBCLIPBOARD_IMPL_H_ 6 #define WEBCLIPBOARD_IMPL_H_
7 7
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebClipboard.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebClipboard.h"
9 #include "ui/base/clipboard/clipboard.h" 9 #include "ui/base/clipboard/clipboard.h"
10 10
(...skipping 19 matching lines...) Expand all
30 virtual bool isFormatAvailable(Format format, Buffer buffer); 30 virtual bool isFormatAvailable(Format format, Buffer buffer);
31 virtual WebKit::WebVector<WebKit::WebString> readAvailableTypes( 31 virtual WebKit::WebVector<WebKit::WebString> readAvailableTypes(
32 Buffer buffer, bool* contains_filenames); 32 Buffer buffer, bool* contains_filenames);
33 virtual WebKit::WebString readPlainText(Buffer buffer); 33 virtual WebKit::WebString readPlainText(Buffer buffer);
34 virtual WebKit::WebString readHTML( 34 virtual WebKit::WebString readHTML(
35 Buffer buffer, 35 Buffer buffer,
36 WebKit::WebURL* source_url, 36 WebKit::WebURL* source_url,
37 unsigned* fragment_start, 37 unsigned* fragment_start,
38 unsigned* fragment_end); 38 unsigned* fragment_end);
39 virtual WebKit::WebData readImage(Buffer buffer); 39 virtual WebKit::WebData readImage(Buffer buffer);
40 virtual WebKit::WebString readCustomData(
41 Buffer buffer, const WebKit::WebString& type);
40 virtual void writeHTML( 42 virtual void writeHTML(
41 const WebKit::WebString& html_text, 43 const WebKit::WebString& html_text,
42 const WebKit::WebURL& source_url, 44 const WebKit::WebURL& source_url,
43 const WebKit::WebString& plain_text, 45 const WebKit::WebString& plain_text,
44 bool write_smart_paste); 46 bool write_smart_paste);
45 virtual void writePlainText(const WebKit::WebString& plain_text); 47 virtual void writePlainText(const WebKit::WebString& plain_text);
46 virtual void writeURL( 48 virtual void writeURL(
47 const WebKit::WebURL& url, 49 const WebKit::WebURL& url,
48 const WebKit::WebString& title); 50 const WebKit::WebString& title);
49 virtual void writeImage( 51 virtual void writeImage(
50 const WebKit::WebImage& image, 52 const WebKit::WebImage& image,
51 const WebKit::WebURL& source_url, 53 const WebKit::WebURL& source_url,
52 const WebKit::WebString& title); 54 const WebKit::WebString& title);
53 virtual void writeDataObject(const WebKit::WebDragData& data); 55 virtual void writeDataObject(const WebKit::WebDragData& data);
54 56
55 private: 57 private:
56 bool ConvertBufferType(Buffer, ui::Clipboard::Buffer*); 58 bool ConvertBufferType(Buffer, ui::Clipboard::Buffer*);
57 ClipboardClient* client_; 59 ClipboardClient* client_;
58 }; 60 };
59 61
60 } // namespace webkit_glue 62 } // namespace webkit_glue
61 63
62 #endif // WEBCLIPBOARD_IMPL_H_ 64 #endif // WEBCLIPBOARD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698