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_MAC_H_ | 5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_MAC_H_ |
6 #define UI_BASE_CLIPBOARD_CLIPBOARD_MAC_H_ | 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_MAC_H_ |
7 | 7 |
8 #include "ui/base/clipboard/clipboard.h" | 8 #include "ui/base/clipboard/clipboard.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 | 11 |
12 class ClipboardMac : public Clipboard { | 12 class ClipboardMac : public Clipboard { |
13 private: | 13 private: |
14 friend class Clipboard; | 14 friend class Clipboard; |
15 | 15 |
16 ClipboardMac(); | 16 ClipboardMac(); |
17 ~ClipboardMac() override; | 17 ~ClipboardMac() override; |
18 | 18 |
19 // Clipboard overrides: | 19 // Clipboard overrides: |
20 uint64 GetSequenceNumber(ClipboardType type) override; | 20 uint64 GetSequenceNumber(ClipboardType type) const override; |
21 bool IsFormatAvailable(const FormatType& format, | 21 bool IsFormatAvailable(const FormatType& format, |
22 ClipboardType type) const override; | 22 ClipboardType type) const override; |
23 void Clear(ClipboardType type) override; | 23 void Clear(ClipboardType type) override; |
24 void ReadAvailableTypes(ClipboardType type, | 24 void ReadAvailableTypes(ClipboardType type, |
25 std::vector<base::string16>* types, | 25 std::vector<base::string16>* types, |
26 bool* contains_filenames) const override; | 26 bool* contains_filenames) const override; |
27 void ReadText(ClipboardType type, base::string16* result) const override; | 27 void ReadText(ClipboardType type, base::string16* result) const override; |
28 void ReadAsciiText(ClipboardType type, std::string* result) const override; | 28 void ReadAsciiText(ClipboardType type, std::string* result) const override; |
29 void ReadHTML(ClipboardType type, | 29 void ReadHTML(ClipboardType type, |
30 base::string16* markup, | 30 base::string16* markup, |
(...skipping 23 matching lines...) Expand all Loading... |
54 void WriteData(const FormatType& format, | 54 void WriteData(const FormatType& format, |
55 const char* data_data, | 55 const char* data_data, |
56 size_t data_len) override; | 56 size_t data_len) override; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(ClipboardMac); | 58 DISALLOW_COPY_AND_ASSIGN(ClipboardMac); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace ui | 61 } // namespace ui |
62 | 62 |
63 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_MAC_H_ | 63 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_MAC_H_ |
OLD | NEW |