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

Side by Side Diff: Source/core/platform/Cursor.h

Issue 105363002: Make SVG images for custom CSS cursors appear sharp on retina displays (Closed) Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 7 years 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
« no previous file with comments | « no previous file | Source/core/platform/Cursor.cpp » ('j') | Source/web/ChromeClientImpl.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 float imageScaleFactor() const { return m_imageScaleFactor; } 112 float imageScaleFactor() const { return m_imageScaleFactor; }
113 113
114 private: 114 private:
115 Type m_type; 115 Type m_type;
116 RefPtr<Image> m_image; 116 RefPtr<Image> m_image;
117 IntPoint m_hotSpot; 117 IntPoint m_hotSpot;
118 float m_imageScaleFactor; 118 float m_imageScaleFactor;
119 }; 119 };
120 120
121 IntPoint determineHotSpot(Image*, const IntPoint& specifiedHotSpot); 121 IntPoint determineHotSpot(Image*, const IntPoint& specifiedHotSpot);
122 Cursor rasterizeSVGCursor(const Cursor&, float imageScaleFactor);
122 123
123 const Cursor& pointerCursor(); 124 const Cursor& pointerCursor();
124 const Cursor& crossCursor(); 125 const Cursor& crossCursor();
125 const Cursor& handCursor(); 126 const Cursor& handCursor();
126 const Cursor& moveCursor(); 127 const Cursor& moveCursor();
127 const Cursor& iBeamCursor(); 128 const Cursor& iBeamCursor();
128 const Cursor& waitCursor(); 129 const Cursor& waitCursor();
129 const Cursor& helpCursor(); 130 const Cursor& helpCursor();
130 const Cursor& eastResizeCursor(); 131 const Cursor& eastResizeCursor();
131 const Cursor& northResizeCursor(); 132 const Cursor& northResizeCursor();
(...skipping 28 matching lines...) Expand all
160 const Cursor& zoomInCursor(); 161 const Cursor& zoomInCursor();
161 const Cursor& zoomOutCursor(); 162 const Cursor& zoomOutCursor();
162 const Cursor& copyCursor(); 163 const Cursor& copyCursor();
163 const Cursor& noneCursor(); 164 const Cursor& noneCursor();
164 const Cursor& grabCursor(); 165 const Cursor& grabCursor();
165 const Cursor& grabbingCursor(); 166 const Cursor& grabbingCursor();
166 167
167 } // namespace WebCore 168 } // namespace WebCore
168 169
169 #endif // Cursor_h 170 #endif // Cursor_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/platform/Cursor.cpp » ('j') | Source/web/ChromeClientImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698