Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(918)

Side by Side Diff: ui/base/clipboard/clipboard_aura.h

Issue 720373003: Add FakeClipboard implementation for unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WINDOWS!!! Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/clipboard/clipboard_android_unittest.cc ('k') | ui/base/clipboard/clipboard_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_AURA_H_ 5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_AURA_H_
6 #define UI_BASE_CLIPBOARD_CLIPBOARD_AURA_H_ 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_AURA_H_
7 7
8 #include "ui/base/clipboard/clipboard.h" 8 #include "ui/base/clipboard/clipboard.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 class ClipboardAura : public Clipboard { 12 class ClipboardAura : public Clipboard {
13 private: 13 private:
14 friend class Clipboard; 14 friend class Clipboard;
15 15
16 ClipboardAura(); 16 ClipboardAura();
17 ~ClipboardAura() override; 17 ~ClipboardAura() override;
18 18
19 // Clipboard overrides: 19 // Clipboard overrides:
20 uint64 GetSequenceNumber(ClipboardType type) override; 20 uint64 GetSequenceNumber(ClipboardType type) const override;
21 bool IsFormatAvailable(const FormatType& format, 21 bool IsFormatAvailable(const FormatType& format,
22 ClipboardType type) const override; 22 ClipboardType type) const override;
23 void Clear(ClipboardType type) override; 23 void Clear(ClipboardType type) override;
24 void ReadAvailableTypes(ClipboardType type, 24 void ReadAvailableTypes(ClipboardType type,
25 std::vector<base::string16>* types, 25 std::vector<base::string16>* types,
26 bool* contains_filenames) const override; 26 bool* contains_filenames) const override;
27 void ReadText(ClipboardType type, base::string16* result) const override; 27 void ReadText(ClipboardType type, base::string16* result) const override;
28 void ReadAsciiText(ClipboardType type, std::string* result) const override; 28 void ReadAsciiText(ClipboardType type, std::string* result) const override;
29 void ReadHTML(ClipboardType type, 29 void ReadHTML(ClipboardType type,
30 base::string16* markup, 30 base::string16* markup,
(...skipping 23 matching lines...) Expand all
54 void WriteData(const FormatType& format, 54 void WriteData(const FormatType& format,
55 const char* data_data, 55 const char* data_data,
56 size_t data_len) override; 56 size_t data_len) override;
57 57
58 DISALLOW_COPY_AND_ASSIGN(ClipboardAura); 58 DISALLOW_COPY_AND_ASSIGN(ClipboardAura);
59 }; 59 };
60 60
61 } // namespace ui 61 } // namespace ui
62 62
63 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_AURA_H_ 63 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_AURA_H_
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_android_unittest.cc ('k') | ui/base/clipboard/clipboard_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698