diff options
Diffstat (limited to 'chromium/ui/base/clipboard/clipboard_android.h')
-rw-r--r-- | chromium/ui/base/clipboard/clipboard_android.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chromium/ui/base/clipboard/clipboard_android.h b/chromium/ui/base/clipboard/clipboard_android.h index 870ee348b14..ee7865653c6 100644 --- a/chromium/ui/base/clipboard/clipboard_android.h +++ b/chromium/ui/base/clipboard/clipboard_android.h @@ -14,17 +14,21 @@ #include "base/android/scoped_java_ref.h" #include "base/callback_forward.h" #include "base/component_export.h" -#include "base/macros.h" #include "base/time/time.h" namespace ui { +// Documentation on the underlying Android API this ultimately abstracts is +// available at https://developer.android.com/guide/topics/text/copy-paste. class ClipboardAndroid : public Clipboard { public: // Callback called whenever the clipboard is modified. The parameter // represents the time of the modification. using ModifiedCallback = base::RepeatingCallback<void(base::Time)>; + ClipboardAndroid(const ClipboardAndroid&) = delete; + ClipboardAndroid& operator=(const ClipboardAndroid&) = delete; + // Called by Java when the Java Clipboard is notified that the clipboard has // changed. void OnPrimaryClipChanged(JNIEnv* env, @@ -59,7 +63,8 @@ class ClipboardAndroid : public Clipboard { // Clipboard overrides: void OnPreShutdown() override; DataTransferEndpoint* GetSource(ClipboardBuffer buffer) const override; - uint64_t GetSequenceNumber(ClipboardBuffer buffer) const override; + const ClipboardSequenceNumberToken& GetSequenceNumber( + ClipboardBuffer buffer) const override; bool IsFormatAvailable(const ClipboardFormatType& format, ClipboardBuffer buffer, const DataTransferEndpoint* data_dst) const override; @@ -109,12 +114,9 @@ class ClipboardAndroid : public Clipboard { std::string* result) const override; base::Time GetLastModifiedTime() const override; void ClearLastModifiedTime() override; - void WritePortableRepresentations( + void WritePortableAndPlatformRepresentations( ClipboardBuffer buffer, const ObjectMap& objects, - std::unique_ptr<DataTransferEndpoint> data_src) override; - void WritePlatformRepresentations( - ClipboardBuffer buffer, std::vector<Clipboard::PlatformRepresentation> platform_representations, std::unique_ptr<DataTransferEndpoint> data_src) override; void WriteText(const char* text_data, size_t text_len) override; @@ -134,8 +136,6 @@ class ClipboardAndroid : public Clipboard { void WriteData(const ClipboardFormatType& format, const char* data_data, size_t data_len) override; - - DISALLOW_COPY_AND_ASSIGN(ClipboardAndroid); }; } // namespace ui |