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/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "content/renderer/clipboard_utils.h" | 13 #include "content/renderer/clipboard_utils.h" |
14 #include "third_party/WebKit/public/platform/WebCommon.h" | 14 #include "third_party/WebKit/public/platform/WebCommon.h" |
15 #include "third_party/WebKit/public/platform/WebDragData.h" | 15 #include "third_party/WebKit/public/platform/WebDragData.h" |
16 #include "third_party/WebKit/public/platform/WebImage.h" | 16 #include "third_party/WebKit/public/platform/WebImage.h" |
17 #include "third_party/WebKit/public/platform/WebURL.h" | 17 #include "third_party/WebKit/public/platform/WebURL.h" |
18 #include "ui/base/clipboard/clipboard.h" | 18 #include "ui/base/clipboard/clipboard.h" |
19 #include "ui/gfx/codec/png_codec.h" | 19 #include "ui/gfx/codec/png_codec.h" |
20 #include "ui/gfx/size.h" | 20 #include "ui/gfx/size.h" |
21 #include "webkit/glue/webkit_glue.h" | |
22 | 21 |
23 using blink::WebDragData; | 22 using blink::WebDragData; |
24 using blink::WebString; | 23 using blink::WebString; |
25 using blink::WebURL; | 24 using blink::WebURL; |
26 using blink::WebVector; | 25 using blink::WebVector; |
27 | 26 |
28 namespace content { | 27 namespace content { |
29 | 28 |
30 MockWebClipboardImpl::MockWebClipboardImpl() {} | 29 MockWebClipboardImpl::MockWebClipboardImpl() {} |
31 | 30 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 200 |
202 void MockWebClipboardImpl::clear() { | 201 void MockWebClipboardImpl::clear() { |
203 m_plainText = WebString(); | 202 m_plainText = WebString(); |
204 m_htmlText = WebString(); | 203 m_htmlText = WebString(); |
205 m_image.reset(); | 204 m_image.reset(); |
206 m_customData.clear(); | 205 m_customData.clear(); |
207 m_writeSmartPaste = false; | 206 m_writeSmartPaste = false; |
208 } | 207 } |
209 | 208 |
210 } // namespace content | 209 } // namespace content |
OLD | NEW |