Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / base / clipboard / clipboard_aura.h
blobe5fbc3407fc19bc6f3889ac843d468eecd20c772
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
3 // found in the LICENSE file.
5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_AURA_H_
6 #define UI_BASE_CLIPBOARD_CLIPBOARD_AURA_H_
8 #include "ui/base/clipboard/clipboard.h"
10 namespace ui {
12 class ClipboardAura : public Clipboard {
13 private:
14 friend class Clipboard;
16 ClipboardAura();
17 ~ClipboardAura() override;
19 // Clipboard overrides:
20 uint64 GetSequenceNumber(ClipboardType type) const override;
21 bool IsFormatAvailable(const FormatType& format,
22 ClipboardType type) const override;
23 void Clear(ClipboardType type) override;
24 void ReadAvailableTypes(ClipboardType type,
25 std::vector<base::string16>* types,
26 bool* contains_filenames) const override;
27 void ReadText(ClipboardType type, base::string16* result) const override;
28 void ReadAsciiText(ClipboardType type, std::string* result) const override;
29 void ReadHTML(ClipboardType type,
30 base::string16* markup,
31 std::string* src_url,
32 uint32* fragment_start,
33 uint32* fragment_end) const override;
34 void ReadRTF(ClipboardType type, std::string* result) const override;
35 SkBitmap ReadImage(ClipboardType type) const override;
36 void ReadCustomData(ClipboardType clipboard_type,
37 const base::string16& type,
38 base::string16* result) const override;
39 void ReadBookmark(base::string16* title, std::string* url) const override;
40 void ReadData(const FormatType& format, std::string* result) const override;
41 void WriteObjects(ClipboardType type, const ObjectMap& objects) override;
42 void WriteText(const char* text_data, size_t text_len) override;
43 void WriteHTML(const char* markup_data,
44 size_t markup_len,
45 const char* url_data,
46 size_t url_len) override;
47 void WriteRTF(const char* rtf_data, size_t data_len) override;
48 void WriteBookmark(const char* title_data,
49 size_t title_len,
50 const char* url_data,
51 size_t url_len) override;
52 void WriteWebSmartPaste() override;
53 void WriteBitmap(const SkBitmap& bitmap) override;
54 void WriteData(const FormatType& format,
55 const char* data_data,
56 size_t data_len) override;
58 DISALLOW_COPY_AND_ASSIGN(ClipboardAura);
61 } // namespace ui
63 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_AURA_H_