| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/ui/cocoa/tab_contents/web_drop_target.h" | 5 #import "chrome/browser/ui/cocoa/tab_contents/web_drop_target.h" |
| 6 | 6 |
| 7 #include "base/sys_string_conversions.h" | 7 #include "base/sys_string_conversions.h" |
| 8 #include "chrome/browser/bookmarks/bookmark_node_data.h" | 8 #include "chrome/browser/bookmarks/bookmark_node_data.h" |
| 9 #include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" | 9 #include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" |
| 10 #include "chrome/browser/renderer_host/render_view_host.h" | 10 #include "content/browser/renderer_host/render_view_host.h" |
| 11 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "content/browser/tab_contents/tab_contents.h" |
| 12 #import "third_party/mozilla/NSPasteboard+Utils.h" | 12 #import "third_party/mozilla/NSPasteboard+Utils.h" |
| 13 #include "webkit/glue/webdropdata.h" | 13 #include "webkit/glue/webdropdata.h" |
| 14 #include "webkit/glue/window_open_disposition.h" | 14 #include "webkit/glue/window_open_disposition.h" |
| 15 | 15 |
| 16 using WebKit::WebDragOperationsMask; | 16 using WebKit::WebDragOperationsMask; |
| 17 | 17 |
| 18 @implementation WebDropTarget | 18 @implementation WebDropTarget |
| 19 | 19 |
| 20 // |contents| is the TabContents representing this tab, used to communicate | 20 // |contents| is the TabContents representing this tab, used to communicate |
| 21 // drag&drop messages to WebCore and handle navigation on a successful drop | 21 // drag&drop messages to WebCore and handle navigation on a successful drop |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 if (exists && !isDir) | 274 if (exists && !isDir) |
| 275 data->filenames.push_back(base::SysNSStringToUTF16(filename)); | 275 data->filenames.push_back(base::SysNSStringToUTF16(filename)); |
| 276 } | 276 } |
| 277 } | 277 } |
| 278 } | 278 } |
| 279 | 279 |
| 280 // TODO(pinkerton): Get file contents. http://crbug.com/34661 | 280 // TODO(pinkerton): Get file contents. http://crbug.com/34661 |
| 281 } | 281 } |
| 282 | 282 |
| 283 @end | 283 @end |
| OLD | NEW |