| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // 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 CONTENT_TEST_MOCK_WEBCLIPBOARD_IMPL_H_ | 10 #ifndef CONTENT_TEST_MOCK_WEBCLIPBOARD_IMPL_H_ |
| 11 #define CONTENT_TEST_MOCK_WEBCLIPBOARD_IMPL_H_ | 11 #define CONTENT_TEST_MOCK_WEBCLIPBOARD_IMPL_H_ |
| 12 | 12 |
| 13 #include <stdint.h> |
| 14 |
| 13 #include <map> | 15 #include <map> |
| 14 | 16 |
| 15 #include "base/strings/nullable_string16.h" | 17 #include "base/strings/nullable_string16.h" |
| 16 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
| 17 #include "third_party/WebKit/public/platform/WebClipboard.h" | 19 #include "third_party/WebKit/public/platform/WebClipboard.h" |
| 18 #include "third_party/WebKit/public/platform/WebDragData.h" | 20 #include "third_party/WebKit/public/platform/WebDragData.h" |
| 19 #include "third_party/WebKit/public/platform/WebImage.h" | 21 #include "third_party/WebKit/public/platform/WebImage.h" |
| 20 | 22 |
| 21 namespace content { | 23 namespace content { |
| 22 | 24 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 base::NullableString16 m_plainText; | 62 base::NullableString16 m_plainText; |
| 61 base::NullableString16 m_htmlText; | 63 base::NullableString16 m_htmlText; |
| 62 blink::WebImage m_image; | 64 blink::WebImage m_image; |
| 63 std::map<base::string16, base::string16> m_customData; | 65 std::map<base::string16, base::string16> m_customData; |
| 64 bool m_writeSmartPaste; | 66 bool m_writeSmartPaste; |
| 65 }; | 67 }; |
| 66 | 68 |
| 67 } // namespace content | 69 } // namespace content |
| 68 | 70 |
| 69 #endif // CONTENT_TEST_MOCK_WEBCLIPBOARD_IMPL_H_ | 71 #endif // CONTENT_TEST_MOCK_WEBCLIPBOARD_IMPL_H_ |
| OLD | NEW |