OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ |
6 #define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "webkit/glue/clipboard_client.h" | 9 #include "webkit/glue/clipboard_client.h" |
10 | 10 |
11 class SimpleClipboardClient : public webkit_glue::ClipboardClient { | 11 class SimpleClipboardClient : public webkit_glue::ClipboardClient { |
12 public: | 12 public: |
13 SimpleClipboardClient(); | 13 SimpleClipboardClient(); |
14 virtual ~SimpleClipboardClient(); | 14 virtual ~SimpleClipboardClient(); |
15 | 15 |
16 virtual ui::Clipboard* GetClipboard() OVERRIDE; | 16 virtual ui::Clipboard* GetClipboard() OVERRIDE; |
17 virtual uint64 GetSequenceNumber(ui::Clipboard::Buffer buffer) OVERRIDE; | 17 virtual uint64 GetSequenceNumber(ui::Clipboard::Buffer buffer) OVERRIDE; |
18 virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format, | 18 virtual bool IsFormatAvailable(const ui::Clipboard::FormatType& format, |
19 ui::Clipboard::Buffer buffer) OVERRIDE; | 19 ui::Clipboard::Buffer buffer) OVERRIDE; |
20 virtual void Clear(ui::Clipboard::Buffer buffer) OVERRIDE; | 20 virtual void Clear(ui::Clipboard::Buffer buffer) OVERRIDE; |
21 virtual void ReadAvailableTypes(ui::Clipboard::Buffer buffer, | 21 virtual void ReadAvailableTypes(ui::Clipboard::Buffer buffer, |
22 std::vector<string16>* types, | 22 std::vector<base::string16>* types, |
23 bool* contains_filenames) OVERRIDE; | 23 bool* contains_filenames) OVERRIDE; |
24 virtual void ReadText(ui::Clipboard::Buffer buffer, | 24 virtual void ReadText(ui::Clipboard::Buffer buffer, |
25 string16* result) OVERRIDE; | 25 base::string16* result) OVERRIDE; |
26 virtual void ReadAsciiText(ui::Clipboard::Buffer buffer, | 26 virtual void ReadAsciiText(ui::Clipboard::Buffer buffer, |
27 std::string* result) OVERRIDE; | 27 std::string* result) OVERRIDE; |
28 virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup, | 28 virtual void ReadHTML(ui::Clipboard::Buffer buffer, base::string16* markup, |
29 GURL* url, uint32* fragment_start, | 29 GURL* url, uint32* fragment_start, |
30 uint32* fragment_end) OVERRIDE; | 30 uint32* fragment_end) OVERRIDE; |
31 virtual void ReadRTF(ui::Clipboard::Buffer buffer, | 31 virtual void ReadRTF(ui::Clipboard::Buffer buffer, |
32 std::string* result) OVERRIDE; | 32 std::string* result) OVERRIDE; |
33 virtual void ReadImage(ui::Clipboard::Buffer buffer, | 33 virtual void ReadImage(ui::Clipboard::Buffer buffer, |
34 std::string* data) OVERRIDE; | 34 std::string* data) OVERRIDE; |
35 virtual void ReadCustomData(ui::Clipboard::Buffer buffer, | 35 virtual void ReadCustomData(ui::Clipboard::Buffer buffer, |
36 const string16& type, | 36 const base::string16& type, |
37 string16* data) OVERRIDE; | 37 base::string16* data) OVERRIDE; |
38 virtual void ReadData(const ui::Clipboard::FormatType& format, | 38 virtual void ReadData(const ui::Clipboard::FormatType& format, |
39 std::string* data) OVERRIDE; | 39 std::string* data) OVERRIDE; |
40 virtual WriteContext* CreateWriteContext() OVERRIDE; | 40 virtual WriteContext* CreateWriteContext() OVERRIDE; |
41 }; | 41 }; |
42 | 42 |
43 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ | 43 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_CLIPBOARD_IMPL_H_ |
OLD | NEW |