| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "webkit/tools/test_shell/mock_webclipboard_impl.h" | 5 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "net/base/escape.h" | 10 #include "net/base/escape.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCommon.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCommon.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebDragData.
h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebImage.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebImage.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
| 15 #include "webkit/glue/webclipboard_impl.h" | 15 #include "webkit/glue/webclipboard_impl.h" |
| 16 #include "webkit/glue/webkit_glue.h" | 16 #include "webkit/glue/webkit_glue.h" |
| 17 #include "webkit/support/webkit_support_gfx.h" | 17 #include "webkit/support/webkit_support_gfx.h" |
| 18 | 18 |
| 19 #if WEBKIT_USING_CG | 19 #if WEBKIT_USING_CG |
| 20 #include <ApplicationServices/ApplicationServices.h> | 20 #include <ApplicationServices/ApplicationServices.h> |
| 21 #include <CoreFoundation/CoreFoundation.h> | 21 #include <CoreFoundation/CoreFoundation.h> |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 using WebKit::WebString; | 24 using WebKit::WebString; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 m_writeSmartPaste = false; | 159 m_writeSmartPaste = false; |
| 160 } | 160 } |
| 161 } | 161 } |
| 162 | 162 |
| 163 void MockWebClipboardImpl::writeDataObject(const WebKit::WebDragData& data) { | 163 void MockWebClipboardImpl::writeDataObject(const WebKit::WebDragData& data) { |
| 164 m_htmlText = data.htmlText(); | 164 m_htmlText = data.htmlText(); |
| 165 m_plainText = data.plainText(); | 165 m_plainText = data.plainText(); |
| 166 m_image.reset(); | 166 m_image.reset(); |
| 167 m_writeSmartPaste = false; | 167 m_writeSmartPaste = false; |
| 168 } | 168 } |
| OLD | NEW |