| OLD | NEW |
| 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 WEBKIT_GLUE_CLIPBOARD_CLIENT_H_ | 5 #ifndef WEBKIT_GLUE_CLIPBOARD_CLIENT_H_ |
| 6 #define WEBKIT_GLUE_CLIPBOARD_CLIENT_H_ | 6 #define WEBKIT_GLUE_CLIPBOARD_CLIENT_H_ |
| 7 | 7 |
| 8 #include "ui/base/clipboard/clipboard.h" | 8 #include "ui/base/clipboard/clipboard.h" |
| 9 | 9 |
| 10 class GURL; | 10 class GURL; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 std::string* result) = 0; | 52 std::string* result) = 0; |
| 53 | 53 |
| 54 // Reads HTML from the clipboard, if available. | 54 // Reads HTML from the clipboard, if available. |
| 55 virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup, | 55 virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup, |
| 56 GURL* url, uint32* fragment_start, | 56 GURL* url, uint32* fragment_start, |
| 57 uint32* fragment_end) = 0; | 57 uint32* fragment_end) = 0; |
| 58 | 58 |
| 59 // Reads and image from the clipboard, if available. | 59 // Reads and image from the clipboard, if available. |
| 60 virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data) = 0; | 60 virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data) = 0; |
| 61 | 61 |
| 62 // Reads a custom data type from the clipboard, if available. |
| 63 virtual void ReadCustomData(ui::Clipboard::Buffer buffer, |
| 64 const string16& type, |
| 65 string16* data) = 0; |
| 66 |
| 62 // Creates a context to write clipboard data. May return NULL. | 67 // Creates a context to write clipboard data. May return NULL. |
| 63 virtual WriteContext* CreateWriteContext() = 0; | 68 virtual WriteContext* CreateWriteContext() = 0; |
| 64 }; | 69 }; |
| 65 | 70 |
| 66 } // namespace webkit_glue | 71 } // namespace webkit_glue |
| 67 | 72 |
| 68 #endif // WEBKIT_GLUE_CLIPBOARD_CLIENT_H_ | 73 #endif // WEBKIT_GLUE_CLIPBOARD_CLIENT_H_ |
| OLD | NEW |