Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: views/drag_utils.cc

Issue 113169: Move win_util.h from common to app. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/text_field.cc ('k') | views/widget/tooltip_manager.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <objidl.h> 7 #include <objidl.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 #include <shobjidl.h> 9 #include <shobjidl.h>
10 10
11 #include "app/gfx/chrome_canvas.h" 11 #include "app/gfx/chrome_canvas.h"
12 #include "app/gfx/chrome_font.h" 12 #include "app/gfx/chrome_font.h"
13 #include "app/l10n_util.h" 13 #include "app/l10n_util.h"
14 #include "app/os_exchange_data.h" 14 #include "app/os_exchange_data.h"
15 #include "app/resource_bundle.h" 15 #include "app/resource_bundle.h"
16 #include "base/file_util.h" 16 #include "base/file_util.h"
17 #include "base/gfx/gdi_util.h" 17 #include "base/gfx/gdi_util.h"
18 #include "base/gfx/point.h" 18 #include "base/gfx/point.h"
19 #include "base/string_util.h" 19 #include "base/string_util.h"
20 #include "chrome/common/win_util.h"
21 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
22 #include "grit/theme_resources.h" 21 #include "grit/theme_resources.h"
23 #include "views/controls/button/text_button.h" 22 #include "views/controls/button/text_button.h"
24 23
25 namespace drag_utils { 24 namespace drag_utils {
26 25
27 // Maximum width of the link drag image in pixels. 26 // Maximum width of the link drag image in pixels.
28 static const int kLinkDragImageMaxWidth = 200; 27 static const int kLinkDragImageMaxWidth = 200;
29 static const int kLinkDragImageVPadding = 3; 28 static const int kLinkDragImageVPadding = 3;
30 static const int kLinkDragImageVSpacing = 2; 29 static const int kLinkDragImageVSpacing = 2;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 HBITMAP bitmap = CreateBitmapFromCanvas(canvas, width, height); 150 HBITMAP bitmap = CreateBitmapFromCanvas(canvas, width, height);
152 151
153 // Attach 'bitmap' to the data_object. 152 // Attach 'bitmap' to the data_object.
154 SetDragImageOnDataObject(bitmap, width, height, 153 SetDragImageOnDataObject(bitmap, width, height,
155 cursor_x_offset, 154 cursor_x_offset,
156 cursor_y_offset, 155 cursor_y_offset,
157 data_object); 156 data_object);
158 } 157 }
159 158
160 } // namespace drag_utils 159 } // namespace drag_utils
OLDNEW
« no previous file with comments | « views/controls/text_field.cc ('k') | views/widget/tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698