OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 // | 4 // |
5 // This file mocks out just enough of the WebClipboard API for running the | 5 // This file mocks out just enough of the WebClipboard API for running the |
6 // webkit tests. This is so we can run webkit tests without them sharing a | 6 // webkit tests. This is so we can run webkit tests without them sharing a |
7 // clipboard, which allows for running them in parallel and having the tests | 7 // clipboard, which allows for running them in parallel and having the tests |
8 // not interact with actual user actions. | 8 // not interact with actual user actions. |
9 | 9 |
10 #ifndef WEBKIT_TOOLS_TEST_SHELL_MOCK_WEBCLIPBOARD_IMPL_H_ | 10 #ifndef WEBKIT_TOOLS_TEST_SHELL_MOCK_WEBCLIPBOARD_IMPL_H_ |
(...skipping 13 matching lines...) Expand all Loading... |
24 virtual void writePlainText(const WebKit::WebString& plain_text); | 24 virtual void writePlainText(const WebKit::WebString& plain_text); |
25 virtual void writeHTML( | 25 virtual void writeHTML( |
26 const WebKit::WebString& htmlText, const WebKit::WebURL&, | 26 const WebKit::WebString& htmlText, const WebKit::WebURL&, |
27 const WebKit::WebString& plainText, bool writeSmartPaste); | 27 const WebKit::WebString& plainText, bool writeSmartPaste); |
28 virtual void writeURL( | 28 virtual void writeURL( |
29 const WebKit::WebURL&, const WebKit::WebString& title); | 29 const WebKit::WebURL&, const WebKit::WebString& title); |
30 virtual void writeImage( | 30 virtual void writeImage( |
31 const WebKit::WebImage&, const WebKit::WebURL&, | 31 const WebKit::WebImage&, const WebKit::WebURL&, |
32 const WebKit::WebString& title); | 32 const WebKit::WebString& title); |
33 | 33 |
| 34 virtual WebKit::WebVector<WebKit::WebString> readAvailableTypes( |
| 35 WebKit::WebClipboard::Buffer, bool* containsFilenames); |
| 36 |
34 private: | 37 private: |
35 WebKit::WebString m_plainText; | 38 WebKit::WebString m_plainText; |
36 WebKit::WebString m_htmlText; | 39 WebKit::WebString m_htmlText; |
37 bool m_writeSmartPaste; | 40 bool m_writeSmartPaste; |
38 }; | 41 }; |
39 | 42 |
40 #endif // WEBKIT_TOOLS_TEST_SHELL_MOCK_WEBCLIPBOARD_IMPL_H_ | 43 #endif // WEBKIT_TOOLS_TEST_SHELL_MOCK_WEBCLIPBOARD_IMPL_H_ |
OLD | NEW |