Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 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. | |
| 4 | |
| 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ | |
| 6 #define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ | |
| 7 | |
| 8 #include "webkit/glue/clipboard_client.h" | |
| 9 | |
| 10 class SimpleClipboardClient: public webkit_glue::ClipboardClient { | |
| 11 public: | |
| 12 SimpleClipboardClient(); | |
| 13 virtual ~SimpleClipboardClient(); | |
| 14 | |
| 15 virtual ui::Clipboard* GetClipboard(); | |
| 16 virtual uint64 GetSequenceNumber(ui::Clipboard::Buffer buffer); | |
| 17 virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format, | |
| 18 ui::Clipboard::Buffer buffer); | |
| 19 virtual void ReadAvailableTypes(ui::Clipboard::Buffer buffer, | |
| 20 std::vector<string16>* types, | |
| 21 bool* contains_filenames); | |
| 22 virtual void ReadText(ui::Clipboard::Buffer buffer, string16* result); | |
| 23 virtual void ReadAsciiText(ui::Clipboard::Buffer buffer, | |
| 24 std::string* result); | |
| 25 virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup, | |
| 26 GURL* url, uint32* fragment_start, | |
| 27 uint32* fragment_end); | |
| 28 virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data); | |
| 29 virtual WriteContext* CreateWriteContext(); | |
| 30 }; | |
| 31 | |
| 32 | |
|
sky
2011/11/21 15:13:17
nit: only one empty line.
piman
2011/11/21 20:27:14
Done.
| |
| 33 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ | |
| OLD | NEW |