| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #import "content/browser/tab_contents/web_drag_dest_mac.h" | 5 #import "content/browser/web_contents/web_drag_dest_mac.h" |
| 6 | 6 |
| 7 #include "base/sys_string_conversions.h" | 7 #include "base/sys_string_conversions.h" |
| 8 #include "content/browser/renderer_host/render_view_host_impl.h" | 8 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 9 #include "content/browser/tab_contents/tab_contents.h" | 9 #include "content/browser/tab_contents/tab_contents.h" |
| 10 #include "content/public/browser/web_drag_dest_delegate.h" | 10 #include "content/public/browser/web_drag_dest_delegate.h" |
| 11 #import "third_party/mozilla/NSPasteboard+Utils.h" | 11 #import "third_party/mozilla/NSPasteboard+Utils.h" |
| 12 #include "ui/base/clipboard/custom_data_helper.h" | 12 #include "ui/base/clipboard/custom_data_helper.h" |
| 13 #import "ui/base/dragdrop/cocoa_dnd_util.h" | 13 #import "ui/base/dragdrop/cocoa_dnd_util.h" |
| 14 #include "webkit/glue/webdropdata.h" | 14 #include "webkit/glue/webdropdata.h" |
| 15 #include "webkit/glue/window_open_disposition.h" | 15 #include "webkit/glue/window_open_disposition.h" |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 // Get custom MIME data. | 242 // Get custom MIME data. |
| 243 if ([types containsObject:ui::kWebCustomDataPboardType]) { | 243 if ([types containsObject:ui::kWebCustomDataPboardType]) { |
| 244 NSData* customData = [pboard dataForType:ui::kWebCustomDataPboardType]; | 244 NSData* customData = [pboard dataForType:ui::kWebCustomDataPboardType]; |
| 245 ui::ReadCustomDataIntoMap([customData bytes], | 245 ui::ReadCustomDataIntoMap([customData bytes], |
| 246 [customData length], | 246 [customData length], |
| 247 &data->custom_data); | 247 &data->custom_data); |
| 248 } | 248 } |
| 249 } | 249 } |
| 250 | 250 |
| 251 @end | 251 @end |
| OLD | NEW |