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 | 15 |
15 @class NSPasteboard; | 16 @class NSPasteboard; |
16 | 17 |
17 namespace ui { | 18 namespace ui { |
18 | 19 |
19 class ClipboardMac : public Clipboard { | 20 class UI_BASE_EXPORT ClipboardMac : public Clipboard { |
20 private: | 21 private: |
21 FRIEND_TEST_ALL_PREFIXES(ClipboardMacTest, ReadImageRetina); | 22 FRIEND_TEST_ALL_PREFIXES(ClipboardMacTest, ReadImageRetina); |
22 FRIEND_TEST_ALL_PREFIXES(ClipboardMacTest, ReadImageNonRetina); | 23 FRIEND_TEST_ALL_PREFIXES(ClipboardMacTest, ReadImageNonRetina); |
23 friend class Clipboard; | 24 friend class Clipboard; |
24 | 25 |
25 ClipboardMac(); | 26 ClipboardMac(); |
26 ~ClipboardMac() override; | 27 ~ClipboardMac() override; |
27 | 28 |
28 // Clipboard overrides: | 29 // Clipboard overrides: |
29 uint64_t GetSequenceNumber(ClipboardType type) const override; | 30 uint64_t GetSequenceNumber(ClipboardType type) const override; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void WriteData(const FormatType& format, | 65 void WriteData(const FormatType& format, |
65 const char* data_data, | 66 const char* data_data, |
66 size_t data_len) override; | 67 size_t data_len) override; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(ClipboardMac); | 69 DISALLOW_COPY_AND_ASSIGN(ClipboardMac); |
69 }; | 70 }; |
70 | 71 |
71 } // namespace ui | 72 } // namespace ui |
72 | 73 |
73 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_MAC_H_ | 74 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_MAC_H_ |
OLD | NEW |