| 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" | 8 #include "ui/base/clipboard/clipboard.h" |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 | 13 |
| 14 class ClipboardAuraX11 : public Clipboard { | 14 class ClipboardAuraX11 : public Clipboard { |
| 15 private: | 15 private: |
| 16 friend class Clipboard; | 16 friend class Clipboard; |
| 17 | 17 |
| 18 ClipboardAuraX11(); | 18 ClipboardAuraX11(); |
| 19 ~ClipboardAuraX11() override; | 19 ~ClipboardAuraX11() override; |
| 20 | 20 |
| 21 // Clipboard overrides: | 21 // Clipboard overrides: |
| 22 uint64 GetSequenceNumber(ClipboardType type) override; | 22 uint64 GetSequenceNumber(ClipboardType type) const override; |
| 23 bool IsFormatAvailable(const FormatType& format, | 23 bool IsFormatAvailable(const FormatType& format, |
| 24 ClipboardType type) const override; | 24 ClipboardType type) const override; |
| 25 void Clear(ClipboardType type) override; | 25 void Clear(ClipboardType type) override; |
| 26 void ReadAvailableTypes(ClipboardType type, | 26 void ReadAvailableTypes(ClipboardType type, |
| 27 std::vector<base::string16>* types, | 27 std::vector<base::string16>* types, |
| 28 bool* contains_filenames) const override; | 28 bool* contains_filenames) const override; |
| 29 void ReadText(ClipboardType type, base::string16* result) const override; | 29 void ReadText(ClipboardType type, base::string16* result) const override; |
| 30 void ReadAsciiText(ClipboardType type, std::string* result) const override; | 30 void ReadAsciiText(ClipboardType type, std::string* result) const override; |
| 31 void ReadHTML(ClipboardType type, | 31 void ReadHTML(ClipboardType type, |
| 32 base::string16* markup, | 32 base::string16* markup, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 61 // own class derived from Clipboard? | 61 // own class derived from Clipboard? |
| 62 class AuraX11Details; | 62 class AuraX11Details; |
| 63 scoped_ptr<AuraX11Details> aurax11_details_; | 63 scoped_ptr<AuraX11Details> aurax11_details_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(ClipboardAuraX11); | 65 DISALLOW_COPY_AND_ASSIGN(ClipboardAuraX11); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace ui | 68 } // namespace ui |
| 69 | 69 |
| 70 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_ | 70 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_AURAX11_H_ |
| OLD | NEW |