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/gtk/tab_contents_drag_source.h" | 5 #include "chrome/browser/ui/gtk/tab_contents_drag_source.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/gtk_dnd_util.h" | 9 #include "app/gtk_dnd_util.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/mime_util.h" | 11 #include "base/mime_util.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/download/download_util.h" | 13 #include "chrome/browser/download/download_util.h" |
14 #include "chrome/browser/download/drag_download_file.h" | 14 #include "chrome/browser/download/drag_download_file.h" |
15 #include "chrome/browser/download/drag_download_util.h" | 15 #include "chrome/browser/download/drag_download_util.h" |
16 #include "chrome/browser/gtk/gtk_util.h" | |
17 #include "chrome/browser/renderer_host/render_view_host.h" | 16 #include "chrome/browser/renderer_host/render_view_host.h" |
18 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 17 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
19 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" |
20 #include "chrome/browser/tab_contents/tab_contents_view.h" | 19 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 20 #include "chrome/browser/ui/gtk/gtk_util.h" |
21 #include "gfx/gtk_util.h" | 21 #include "gfx/gtk_util.h" |
22 #include "net/base/file_stream.h" | 22 #include "net/base/file_stream.h" |
23 #include "net/base/net_util.h" | 23 #include "net/base/net_util.h" |
24 #include "webkit/glue/webdropdata.h" | 24 #include "webkit/glue/webdropdata.h" |
25 | 25 |
26 using WebKit::WebDragOperation; | 26 using WebKit::WebDragOperation; |
27 using WebKit::WebDragOperationsMask; | 27 using WebKit::WebDragOperationsMask; |
28 using WebKit::WebDragOperationNone; | 28 using WebKit::WebDragOperationNone; |
29 | 29 |
30 TabContentsDragSource::TabContentsDragSource( | 30 TabContentsDragSource::TabContentsDragSource( |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 cairo_t* cr = gdk_cairo_create(event->window); | 380 cairo_t* cr = gdk_cairo_create(event->window); |
381 gdk_cairo_rectangle(cr, &event->area); | 381 gdk_cairo_rectangle(cr, &event->area); |
382 cairo_clip(cr); | 382 cairo_clip(cr); |
383 cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); | 383 cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); |
384 gdk_cairo_set_source_pixbuf(cr, drag_pixbuf_, 0, 0); | 384 gdk_cairo_set_source_pixbuf(cr, drag_pixbuf_, 0, 0); |
385 cairo_paint(cr); | 385 cairo_paint(cr); |
386 cairo_destroy(cr); | 386 cairo_destroy(cr); |
387 | 387 |
388 return TRUE; | 388 return TRUE; |
389 } | 389 } |
OLD | NEW |