| 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 #include "content/test/mock_webclipboard_impl.h" | 5 #include "content/test/mock_webclipboard_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "content/renderer/clipboard_utils.h" | 12 #include "content/renderer/clipboard_utils.h" |
| 13 #include "third_party/WebKit/public/platform/WebCommon.h" | 13 #include "third_party/WebKit/public/platform/WebCommon.h" |
| 14 #include "third_party/WebKit/public/platform/WebDragData.h" | 14 #include "third_party/WebKit/public/platform/WebDragData.h" |
| 15 #include "third_party/WebKit/public/platform/WebImage.h" | 15 #include "third_party/WebKit/public/platform/WebImage.h" |
| 16 #include "third_party/WebKit/public/platform/WebURL.h" | 16 #include "third_party/WebKit/public/platform/WebURL.h" |
| 17 #include "ui/base/clipboard/clipboard.h" | 17 #include "ui/base/clipboard/clipboard.h" |
| 18 #include "ui/gfx/codec/png_codec.h" | 18 #include "ui/gfx/codec/png_codec.h" |
| 19 #include "ui/gfx/size.h" | 19 #include "ui/gfx/geometry/size.h" |
| 20 | 20 |
| 21 using blink::WebDragData; | 21 using blink::WebDragData; |
| 22 using blink::WebString; | 22 using blink::WebString; |
| 23 using blink::WebURL; | 23 using blink::WebURL; |
| 24 using blink::WebVector; | 24 using blink::WebVector; |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 | 27 |
| 28 MockWebClipboardImpl::MockWebClipboardImpl() | 28 MockWebClipboardImpl::MockWebClipboardImpl() |
| 29 : m_sequenceNumber(0), | 29 : m_sequenceNumber(0), |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 void MockWebClipboardImpl::clear() { | 197 void MockWebClipboardImpl::clear() { |
| 198 m_plainText = base::NullableString16(); | 198 m_plainText = base::NullableString16(); |
| 199 m_htmlText = base::NullableString16(); | 199 m_htmlText = base::NullableString16(); |
| 200 m_image.reset(); | 200 m_image.reset(); |
| 201 m_customData.clear(); | 201 m_customData.clear(); |
| 202 m_writeSmartPaste = false; | 202 m_writeSmartPaste = false; |
| 203 } | 203 } |
| 204 | 204 |
| 205 } // namespace content | 205 } // namespace content |
| OLD | NEW |