OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/renderer/webclipboard_impl.h" | 5 #include "content/renderer/webclipboard_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/pickle.h" | 8 #include "base/pickle.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "content/public/common/drop_data.h" | 11 #include "content/public/common/drop_data.h" |
12 #include "content/renderer/clipboard_utils.h" | 12 #include "content/renderer/clipboard_utils.h" |
13 #include "content/renderer/drop_data_builder.h" | 13 #include "content/renderer/drop_data_builder.h" |
14 #include "content/renderer/scoped_clipboard_writer_glue.h" | 14 #include "content/renderer/scoped_clipboard_writer_glue.h" |
15 #include "third_party/WebKit/public/platform/WebData.h" | 15 #include "third_party/WebKit/public/platform/WebData.h" |
16 #include "third_party/WebKit/public/platform/WebDragData.h" | 16 #include "third_party/WebKit/public/platform/WebDragData.h" |
17 #include "third_party/WebKit/public/platform/WebImage.h" | 17 #include "third_party/WebKit/public/platform/WebImage.h" |
18 #include "third_party/WebKit/public/platform/WebSize.h" | 18 #include "third_party/WebKit/public/platform/WebSize.h" |
19 #include "third_party/WebKit/public/platform/WebString.h" | 19 #include "third_party/WebKit/public/platform/WebString.h" |
20 #include "third_party/WebKit/public/platform/WebURL.h" | 20 #include "third_party/WebKit/public/platform/WebURL.h" |
21 #include "third_party/WebKit/public/platform/WebVector.h" | 21 #include "third_party/WebKit/public/platform/WebVector.h" |
22 #include "third_party/skia/include/core/SkBitmap.h" | 22 #include "third_party/skia/include/core/SkBitmap.h" |
23 #include "ui/base/clipboard/clipboard.h" | 23 #include "ui/base/clipboard/clipboard.h" |
24 #include "ui/base/clipboard/custom_data_helper.h" | 24 #include "ui/base/clipboard/custom_data_helper.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
26 #include "webkit/glue/webkit_glue.h" | 26 #include "webkit/glue/webkit_glue.h" |
27 | 27 |
28 using WebKit::WebClipboard; | 28 using blink::WebClipboard; |
29 using WebKit::WebData; | 29 using blink::WebData; |
30 using WebKit::WebDragData; | 30 using blink::WebDragData; |
31 using WebKit::WebImage; | 31 using blink::WebImage; |
32 using WebKit::WebString; | 32 using blink::WebString; |
33 using WebKit::WebURL; | 33 using blink::WebURL; |
34 using WebKit::WebVector; | 34 using blink::WebVector; |
35 | 35 |
36 namespace content { | 36 namespace content { |
37 | 37 |
38 WebClipboardImpl::WebClipboardImpl(ClipboardClient* client) | 38 WebClipboardImpl::WebClipboardImpl(ClipboardClient* client) |
39 : client_(client) { | 39 : client_(client) { |
40 } | 40 } |
41 | 41 |
42 WebClipboardImpl::~WebClipboardImpl() { | 42 WebClipboardImpl::~WebClipboardImpl() { |
43 } | 43 } |
44 | 44 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 #endif | 232 #endif |
233 #endif | 233 #endif |
234 default: | 234 default: |
235 NOTREACHED(); | 235 NOTREACHED(); |
236 return false; | 236 return false; |
237 } | 237 } |
238 return true; | 238 return true; |
239 } | 239 } |
240 | 240 |
241 } // namespace content | 241 } // namespace content |
OLD | NEW |