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 "chrome/browser/tab_contents/web_drag_dest_gtk.h" | 5 #include "chrome/browser/tab_contents/web_drag_dest_gtk.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/message_loop.h" | |
11 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/bookmarks/bookmark_node_data.h" | 11 #include "chrome/browser/bookmarks/bookmark_node_data.h" |
13 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 12 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
14 #include "chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h" | 13 #include "chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h" |
15 #include "chrome/browser/ui/gtk/gtk_util.h" | 14 #include "chrome/browser/ui/gtk/gtk_util.h" |
16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
17 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
18 #include "content/browser/renderer_host/render_view_host.h" | 17 #include "content/browser/renderer_host/render_view_host.h" |
19 #include "content/browser/tab_contents/tab_contents.h" | 18 #include "content/browser/tab_contents/tab_contents.h" |
20 #include "net/base/net_util.h" | 19 #include "net/base/net_util.h" |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 if (tab_->bookmark_tab_helper()->GetBookmarkDragDelegate()) | 284 if (tab_->bookmark_tab_helper()->GetBookmarkDragDelegate()) |
286 tab_->bookmark_tab_helper()->GetBookmarkDragDelegate()->OnDrop( | 285 tab_->bookmark_tab_helper()->GetBookmarkDragDelegate()->OnDrop( |
287 bookmark_drag_data_); | 286 bookmark_drag_data_); |
288 | 287 |
289 // The second parameter is just an educated guess as to whether or not the | 288 // The second parameter is just an educated guess as to whether or not the |
290 // drag succeeded, but at least we will get the drag-end animation right | 289 // drag succeeded, but at least we will get the drag-end animation right |
291 // sometimes. | 290 // sometimes. |
292 gtk_drag_finish(context, is_drop_target_, FALSE, time); | 291 gtk_drag_finish(context, is_drop_target_, FALSE, time); |
293 return TRUE; | 292 return TRUE; |
294 } | 293 } |
OLD | NEW |