Chromium Code Reviews

Side by Side Diff: views/drag_utils_gtk.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « views/drag_utils.cc ('k') | views/drag_utils_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "views/drag_utils.h" 5 #include "views/drag_utils.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/gfx/canvas.h"
10 #include "app/os_exchange_data.h" 9 #include "app/os_exchange_data.h"
11 #include "app/os_exchange_data_provider_gtk.h" 10 #include "app/os_exchange_data_provider_gtk.h"
12 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "gfx/canvas.h"
13 #include "gfx/gtk_util.h" 13 #include "gfx/gtk_util.h"
14 #include "gfx/point.h" 14 #include "gfx/point.h"
15 #include "gfx/size.h" 15 #include "gfx/size.h"
16 16
17 namespace drag_utils { 17 namespace drag_utils {
18 18
19 void SetDragImageOnDataObject(const gfx::Canvas& canvas, 19 void SetDragImageOnDataObject(const gfx::Canvas& canvas,
20 const gfx::Size& size, 20 const gfx::Size& size,
21 const gfx::Point& cursor_offset, 21 const gfx::Point& cursor_offset,
22 OSExchangeData* data_object) { 22 OSExchangeData* data_object) {
(...skipping 14 matching lines...)
37 gdk_pixbuf_copy_area(canvas_pixbuf, 0, 0, size.width(), size.height(), pixbuf, 37 gdk_pixbuf_copy_area(canvas_pixbuf, 0, 0, size.width(), size.height(), pixbuf,
38 0, 0); 38 0, 0);
39 g_object_unref(canvas_pixbuf); 39 g_object_unref(canvas_pixbuf);
40 40
41 // Set the drag data on to the provider. 41 // Set the drag data on to the provider.
42 provider.SetDragImage(pixbuf, cursor_offset); 42 provider.SetDragImage(pixbuf, cursor_offset);
43 g_object_unref(pixbuf); 43 g_object_unref(pixbuf);
44 } 44 }
45 45
46 } // namespace drag_utils 46 } // namespace drag_utils
OLDNEW
« no previous file with comments | « views/drag_utils.cc ('k') | views/drag_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine