| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ | 5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ |
| 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ | 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ |
| 7 | 7 |
| 8 #include "ui/base/clipboard/clipboard.h" | 8 #include "ui/base/clipboard/clipboard.h" |
| 9 | 9 |
| 10 #include <jni.h> | 10 #include <jni.h> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 std::string* src_url, | 38 std::string* src_url, |
| 39 uint32_t* fragment_start, | 39 uint32_t* fragment_start, |
| 40 uint32_t* fragment_end) const override; | 40 uint32_t* fragment_end) const override; |
| 41 void ReadRTF(ClipboardType type, std::string* result) const override; | 41 void ReadRTF(ClipboardType type, std::string* result) const override; |
| 42 SkBitmap ReadImage(ClipboardType type) const override; | 42 SkBitmap ReadImage(ClipboardType type) const override; |
| 43 void ReadCustomData(ClipboardType clipboard_type, | 43 void ReadCustomData(ClipboardType clipboard_type, |
| 44 const base::string16& type, | 44 const base::string16& type, |
| 45 base::string16* result) const override; | 45 base::string16* result) const override; |
| 46 void ReadBookmark(base::string16* title, std::string* url) const override; | 46 void ReadBookmark(base::string16* title, std::string* url) const override; |
| 47 void ReadData(const FormatType& format, std::string* result) const override; | 47 void ReadData(const FormatType& format, std::string* result) const override; |
| 48 base::Time GetClipboardLastModifiedTime() const override; |
| 48 void WriteObjects(ClipboardType type, const ObjectMap& objects) override; | 49 void WriteObjects(ClipboardType type, const ObjectMap& objects) override; |
| 49 void WriteText(const char* text_data, size_t text_len) override; | 50 void WriteText(const char* text_data, size_t text_len) override; |
| 50 void WriteHTML(const char* markup_data, | 51 void WriteHTML(const char* markup_data, |
| 51 size_t markup_len, | 52 size_t markup_len, |
| 52 const char* url_data, | 53 const char* url_data, |
| 53 size_t url_len) override; | 54 size_t url_len) override; |
| 54 void WriteRTF(const char* rtf_data, size_t data_len) override; | 55 void WriteRTF(const char* rtf_data, size_t data_len) override; |
| 55 void WriteBookmark(const char* title_data, | 56 void WriteBookmark(const char* title_data, |
| 56 size_t title_len, | 57 size_t title_len, |
| 57 const char* url_data, | 58 const char* url_data, |
| 58 size_t url_len) override; | 59 size_t url_len) override; |
| 59 void WriteWebSmartPaste() override; | 60 void WriteWebSmartPaste() override; |
| 60 void WriteBitmap(const SkBitmap& bitmap) override; | 61 void WriteBitmap(const SkBitmap& bitmap) override; |
| 61 void WriteData(const FormatType& format, | 62 void WriteData(const FormatType& format, |
| 62 const char* data_data, | 63 const char* data_data, |
| 63 size_t data_len) override; | 64 size_t data_len) override; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(ClipboardAndroid); | 66 DISALLOW_COPY_AND_ASSIGN(ClipboardAndroid); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace ui | 69 } // namespace ui |
| 69 | 70 |
| 70 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ | 71 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ |
| OLD | NEW |