| 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> |
| 11 #include <stddef.h> | 11 #include <stddef.h> |
| 12 #include <stdint.h> | 12 #include <stdint.h> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 | 15 |
| 16 namespace ui { | 16 namespace ui { |
| 17 | 17 |
| 18 bool RegisterClipboardAndroid(JNIEnv* env); | |
| 19 | |
| 20 class ClipboardAndroid : public Clipboard { | 18 class ClipboardAndroid : public Clipboard { |
| 21 private: | 19 private: |
| 22 friend class Clipboard; | 20 friend class Clipboard; |
| 23 | 21 |
| 24 ClipboardAndroid(); | 22 ClipboardAndroid(); |
| 25 ~ClipboardAndroid() override; | 23 ~ClipboardAndroid() override; |
| 26 | 24 |
| 27 // Clipboard overrides: | 25 // Clipboard overrides: |
| 28 uint64_t GetSequenceNumber(ClipboardType type) const override; | 26 uint64_t GetSequenceNumber(ClipboardType type) const override; |
| 29 bool IsFormatAvailable(const FormatType& format, | 27 bool IsFormatAvailable(const FormatType& format, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void WriteData(const FormatType& format, | 60 void WriteData(const FormatType& format, |
| 63 const char* data_data, | 61 const char* data_data, |
| 64 size_t data_len) override; | 62 size_t data_len) override; |
| 65 | 63 |
| 66 DISALLOW_COPY_AND_ASSIGN(ClipboardAndroid); | 64 DISALLOW_COPY_AND_ASSIGN(ClipboardAndroid); |
| 67 }; | 65 }; |
| 68 | 66 |
| 69 } // namespace ui | 67 } // namespace ui |
| 70 | 68 |
| 71 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ | 69 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ |
| OLD | NEW |