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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "ui/base/clipboard/clipboard.h" | 13 #include "ui/base/clipboard/clipboard.h" |
14 #include "ui/base/ui_base_export.h" | 14 #include "ui/base/ui_base_export.h" |
15 | 15 |
16 @class NSPasteboard; | 16 @class NSPasteboard; |
17 | 17 |
18 namespace ui { | 18 namespace ui { |
19 | 19 |
20 class UI_BASE_EXPORT ClipboardMac : public Clipboard { | 20 class UI_BASE_EXPORT ClipboardMac : public Clipboard { |
21 private: | 21 private: |
22 FRIEND_TEST_ALL_PREFIXES(ClipboardMacTest, ReadImageRetina); | 22 FRIEND_TEST_ALL_PREFIXES(ClipboardMacTest, ReadImageRetina); |
23 FRIEND_TEST_ALL_PREFIXES(ClipboardMacTest, ReadImageNonRetina); | 23 FRIEND_TEST_ALL_PREFIXES(ClipboardMacTest, ReadImageNonRetina); |
| 24 FRIEND_TEST_ALL_PREFIXES(ClipboardMacTest, EmptyImage); |
| 25 FRIEND_TEST_ALL_PREFIXES(ClipboardMacTest, PDFImage); |
24 friend class Clipboard; | 26 friend class Clipboard; |
25 | 27 |
26 ClipboardMac(); | 28 ClipboardMac(); |
27 ~ClipboardMac() override; | 29 ~ClipboardMac() override; |
28 | 30 |
29 // Clipboard overrides: | 31 // Clipboard overrides: |
30 uint64_t GetSequenceNumber(ClipboardType type) const override; | 32 uint64_t GetSequenceNumber(ClipboardType type) const override; |
31 bool IsFormatAvailable(const FormatType& format, | 33 bool IsFormatAvailable(const FormatType& format, |
32 ClipboardType type) const override; | 34 ClipboardType type) const override; |
33 void Clear(ClipboardType type) override; | 35 void Clear(ClipboardType type) override; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 void WriteData(const FormatType& format, | 67 void WriteData(const FormatType& format, |
66 const char* data_data, | 68 const char* data_data, |
67 size_t data_len) override; | 69 size_t data_len) override; |
68 | 70 |
69 DISALLOW_COPY_AND_ASSIGN(ClipboardMac); | 71 DISALLOW_COPY_AND_ASSIGN(ClipboardMac); |
70 }; | 72 }; |
71 | 73 |
72 } // namespace ui | 74 } // namespace ui |
73 | 75 |
74 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_MAC_H_ | 76 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_MAC_H_ |
OLD | NEW |