| 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 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual void ReadRTF(ui::Clipboard::Buffer buffer, std::string* result) = 0; | 63 virtual void ReadRTF(ui::Clipboard::Buffer buffer, std::string* result) = 0; |
| 64 | 64 |
| 65 // Reads and image from the clipboard, if available. | 65 // Reads and image from the clipboard, if available. |
| 66 virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data) = 0; | 66 virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data) = 0; |
| 67 | 67 |
| 68 // Reads a custom data type from the clipboard, if available. | 68 // Reads a custom data type from the clipboard, if available. |
| 69 virtual void ReadCustomData(ui::Clipboard::Buffer buffer, | 69 virtual void ReadCustomData(ui::Clipboard::Buffer buffer, |
| 70 const string16& type, | 70 const string16& type, |
| 71 string16* data) = 0; | 71 string16* data) = 0; |
| 72 | 72 |
| 73 // Reads raw data from the clipboard for a given format. |
| 74 virtual void ReadData(const ui::Clipboard::FormatType& format, |
| 75 std::string* data) = 0; |
| 76 |
| 73 // Creates a context to write clipboard data. May return NULL. | 77 // Creates a context to write clipboard data. May return NULL. |
| 74 virtual WriteContext* CreateWriteContext() = 0; | 78 virtual WriteContext* CreateWriteContext() = 0; |
| 75 }; | 79 }; |
| 76 | 80 |
| 77 } // namespace webkit_glue | 81 } // namespace webkit_glue |
| 78 | 82 |
| 79 #endif // WEBKIT_GLUE_CLIPBOARD_CLIENT_H_ | 83 #endif // WEBKIT_GLUE_CLIPBOARD_CLIENT_H_ |
| OLD | NEW |