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

Side by Side Diff: webkit/glue/cursor_utils.cc

Issue 15971005: Move the WebCursor sources from webkit/glue to webkit/common/cursors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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 | « webkit/glue/cursor_utils.h ('k') | webkit/glue/webcursor.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "webkit/glue/cursor_utils.h" 5 #include "webkit/glue/cursor_utils.h"
6 6
7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h"
8 #include "webkit/glue/webcursor.h"
9 8
10 using WebKit::WebCursorInfo; 9 using WebKit::WebCursorInfo;
11 10
12 namespace webkit_glue { 11 namespace webkit_glue {
13 12
14 bool GetWebKitCursorInfo(const WebCursor& cursor, 13 bool GetWebKitCursorInfo(const WebCursor& cursor,
15 WebCursorInfo* webkit_cursor_info) { 14 WebCursorInfo* webkit_cursor_info) {
16 WebCursor::CursorInfo cursor_info; 15 WebCursor::CursorInfo cursor_info;
17 cursor.GetCursorInfo(&cursor_info); 16 cursor.GetCursorInfo(&cursor_info);
18 17
(...skipping 16 matching lines...) Expand all
35 web_cursor_info.hotspot = webkit_cursor_info.hotSpot; 34 web_cursor_info.hotspot = webkit_cursor_info.hotSpot;
36 web_cursor_info.custom_image = webkit_cursor_info.customImage.getSkBitmap(); 35 web_cursor_info.custom_image = webkit_cursor_info.customImage.getSkBitmap();
37 #if defined(OS_WIN) 36 #if defined(OS_WIN)
38 web_cursor_info.external_handle = webkit_cursor_info.externalHandle; 37 web_cursor_info.external_handle = webkit_cursor_info.externalHandle;
39 #endif 38 #endif
40 cursor->InitFromCursorInfo(web_cursor_info); 39 cursor->InitFromCursorInfo(web_cursor_info);
41 } 40 }
42 41
43 } // namespce webkit_glue 42 } // namespce webkit_glue
44 43
OLDNEW
« no previous file with comments | « webkit/glue/cursor_utils.h ('k') | webkit/glue/webcursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698