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 #include "content/browser/web_contents/web_drag_source_gtk.h" | 5 #include "content/browser/web_contents/web_drag_source_gtk.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/file_util.h" | |
10 #include "base/nix/mime_util_xdg.h" | 9 #include "base/nix/mime_util_xdg.h" |
11 #include "base/threading/thread_restrictions.h" | 10 #include "base/threading/thread_restrictions.h" |
12 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
13 #include "content/browser/download/drag_download_file.h" | 12 #include "content/browser/download/drag_download_file.h" |
14 #include "content/browser/download/drag_download_util.h" | 13 #include "content/browser/download/drag_download_util.h" |
15 #include "content/browser/renderer_host/render_view_host_delegate.h" | 14 #include "content/browser/renderer_host/render_view_host_delegate.h" |
16 #include "content/browser/renderer_host/render_view_host_impl.h" | 15 #include "content/browser/renderer_host/render_view_host_impl.h" |
17 #include "content/browser/web_contents/drag_utils_gtk.h" | 16 #include "content/browser/web_contents/drag_utils_gtk.h" |
18 #include "content/browser/web_contents/web_contents_impl.h" | 17 #include "content/browser/web_contents/web_contents_impl.h" |
19 #include "content/public/browser/content_browser_client.h" | 18 #include "content/public/browser/content_browser_client.h" |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 cairo_clip(cr); | 394 cairo_clip(cr); |
396 cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); | 395 cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); |
397 gdk_cairo_set_source_pixbuf(cr, drag_pixbuf_, 0, 0); | 396 gdk_cairo_set_source_pixbuf(cr, drag_pixbuf_, 0, 0); |
398 cairo_paint(cr); | 397 cairo_paint(cr); |
399 cairo_destroy(cr); | 398 cairo_destroy(cr); |
400 | 399 |
401 return TRUE; | 400 return TRUE; |
402 } | 401 } |
403 | 402 |
404 } // namespace content | 403 } // namespace content |
OLD | NEW |