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_AURAX11_H_ | 5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_ |
6 #define UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_ | 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_ |
7 | 7 |
8 #include "ui/base/clipboard/clipboard.h" | |
9 | |
10 #include <stddef.h> | 8 #include <stddef.h> |
11 #include <stdint.h> | 9 #include <stdint.h> |
12 | 10 |
| 11 #include <memory> |
| 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "ui/base/clipboard/clipboard.h" |
15 | 15 |
16 namespace ui { | 16 namespace ui { |
17 | 17 |
18 class ClipboardAuraX11 : public Clipboard { | 18 class ClipboardAuraX11 : public Clipboard { |
19 private: | 19 private: |
20 friend class Clipboard; | 20 friend class Clipboard; |
21 | 21 |
22 ClipboardAuraX11(); | 22 ClipboardAuraX11(); |
23 ~ClipboardAuraX11() override; | 23 ~ClipboardAuraX11() override; |
24 | 24 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 size_t url_len) override; | 57 size_t url_len) override; |
58 void WriteWebSmartPaste() override; | 58 void WriteWebSmartPaste() override; |
59 void WriteBitmap(const SkBitmap& bitmap) override; | 59 void WriteBitmap(const SkBitmap& bitmap) override; |
60 void WriteData(const FormatType& format, | 60 void WriteData(const FormatType& format, |
61 const char* data_data, | 61 const char* data_data, |
62 size_t data_len) override; | 62 size_t data_len) override; |
63 | 63 |
64 // TODO(dcheng): Is this still needed now that each platform clipboard has its | 64 // TODO(dcheng): Is this still needed now that each platform clipboard has its |
65 // own class derived from Clipboard? | 65 // own class derived from Clipboard? |
66 class AuraX11Details; | 66 class AuraX11Details; |
67 scoped_ptr<AuraX11Details> aurax11_details_; | 67 std::unique_ptr<AuraX11Details> aurax11_details_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(ClipboardAuraX11); | 69 DISALLOW_COPY_AND_ASSIGN(ClipboardAuraX11); |
70 }; | 70 }; |
71 | 71 |
72 } // namespace ui | 72 } // namespace ui |
73 | 73 |
74 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_ | 74 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_ |
OLD | NEW |