| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDERER_CLIPBOARD_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_CLIPBOARD_DELEGATE_H_ |
| 6 #define CONTENT_RENDERER_RENDERER_CLIPBOARD_DELEGATE_H_ | 6 #define CONTENT_RENDERER_RENDERER_CLIPBOARD_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 void ReadAvailableTypes(ui::ClipboardType type, | 33 void ReadAvailableTypes(ui::ClipboardType type, |
| 34 std::vector<base::string16>* types, | 34 std::vector<base::string16>* types, |
| 35 bool* contains_filenames); | 35 bool* contains_filenames); |
| 36 void ReadText(ui::ClipboardType type, base::string16* result); | 36 void ReadText(ui::ClipboardType type, base::string16* result); |
| 37 void ReadHTML(ui::ClipboardType type, | 37 void ReadHTML(ui::ClipboardType type, |
| 38 base::string16* markup, | 38 base::string16* markup, |
| 39 GURL* url, | 39 GURL* url, |
| 40 uint32_t* fragment_start, | 40 uint32_t* fragment_start, |
| 41 uint32_t* fragment_end); | 41 uint32_t* fragment_end); |
| 42 void ReadRTF(ui::ClipboardType type, std::string* result); | 42 void ReadRTF(ui::ClipboardType type, std::string* result); |
| 43 void ReadImage(ui::ClipboardType type, std::string* data); | 43 void ReadImage(ui::ClipboardType type, |
| 44 std::string* blob_uuid, |
| 45 std::string* mime_type, |
| 46 int64_t* size); |
| 44 void ReadCustomData(ui::ClipboardType clipboard_type, | 47 void ReadCustomData(ui::ClipboardType clipboard_type, |
| 45 const base::string16& type, | 48 const base::string16& type, |
| 46 base::string16* data); | 49 base::string16* data); |
| 47 | 50 |
| 48 void WriteText(ui::ClipboardType type, const base::string16& text); | 51 void WriteText(ui::ClipboardType type, const base::string16& text); |
| 49 void WriteHTML(ui::ClipboardType type, | 52 void WriteHTML(ui::ClipboardType type, |
| 50 const base::string16& markup, | 53 const base::string16& markup, |
| 51 const GURL& url); | 54 const GURL& url); |
| 52 void WriteSmartPasteMarker(ui::ClipboardType type); | 55 void WriteSmartPasteMarker(ui::ClipboardType type); |
| 53 void WriteCustomData(ui::ClipboardType type, | 56 void WriteCustomData(ui::ClipboardType type, |
| 54 const std::map<base::string16, base::string16>& data); | 57 const std::map<base::string16, base::string16>& data); |
| 55 void WriteBookmark(ui::ClipboardType type, | 58 void WriteBookmark(ui::ClipboardType type, |
| 56 const GURL& url, | 59 const GURL& url, |
| 57 const base::string16& title); | 60 const base::string16& title); |
| 58 bool WriteImage(ui::ClipboardType type, const SkBitmap& bitmap); | 61 bool WriteImage(ui::ClipboardType type, const SkBitmap& bitmap); |
| 59 void CommitWrite(ui::ClipboardType type); | 62 void CommitWrite(ui::ClipboardType type); |
| 60 | 63 |
| 61 private: | 64 private: |
| 62 DISALLOW_COPY_AND_ASSIGN(RendererClipboardDelegate); | 65 DISALLOW_COPY_AND_ASSIGN(RendererClipboardDelegate); |
| 63 }; | 66 }; |
| 64 | 67 |
| 65 } // namespace content | 68 } // namespace content |
| 66 | 69 |
| 67 #endif // CONTENT_RENDERER_RENDERER_CLIPBOARD_DELEGATE_H_ | 70 #endif // CONTENT_RENDERER_RENDERER_CLIPBOARD_DELEGATE_H_ |
| OLD | NEW |