OLD | NEW |
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 Cursor(const Cursor&); | 98 Cursor(const Cursor&); |
99 ~Cursor(); | 99 ~Cursor(); |
100 Cursor& operator=(const Cursor&); | 100 Cursor& operator=(const Cursor&); |
101 | 101 |
102 explicit Cursor(Type); | 102 explicit Cursor(Type); |
103 Type getType() const | 103 Type getType() const |
104 { | 104 { |
105 ASSERT(m_type >= 0 && m_type <= Custom); | 105 ASSERT(m_type >= 0 && m_type <= Custom); |
106 return m_type; | 106 return m_type; |
107 } | 107 } |
108 Image* image() const { return m_image.get(); } | 108 Image* getImage() const { return m_image.get(); } |
109 const IntPoint& hotSpot() const { return m_hotSpot; } | 109 const IntPoint& hotSpot() const { return m_hotSpot; } |
110 // Image scale in image pixels per logical (UI) pixel. | 110 // Image scale in image pixels per logical (UI) pixel. |
111 float imageScaleFactor() const { return m_imageScaleFactor; } | 111 float imageScaleFactor() const { return m_imageScaleFactor; } |
112 | 112 |
113 private: | 113 private: |
114 Type m_type; | 114 Type m_type; |
115 RefPtr<Image> m_image; | 115 RefPtr<Image> m_image; |
116 IntPoint m_hotSpot; | 116 IntPoint m_hotSpot; |
117 float m_imageScaleFactor; | 117 float m_imageScaleFactor; |
118 }; | 118 }; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 PLATFORM_EXPORT const Cursor& zoomInCursor(); | 159 PLATFORM_EXPORT const Cursor& zoomInCursor(); |
160 PLATFORM_EXPORT const Cursor& zoomOutCursor(); | 160 PLATFORM_EXPORT const Cursor& zoomOutCursor(); |
161 PLATFORM_EXPORT const Cursor& copyCursor(); | 161 PLATFORM_EXPORT const Cursor& copyCursor(); |
162 PLATFORM_EXPORT const Cursor& noneCursor(); | 162 PLATFORM_EXPORT const Cursor& noneCursor(); |
163 PLATFORM_EXPORT const Cursor& grabCursor(); | 163 PLATFORM_EXPORT const Cursor& grabCursor(); |
164 PLATFORM_EXPORT const Cursor& grabbingCursor(); | 164 PLATFORM_EXPORT const Cursor& grabbingCursor(); |
165 | 165 |
166 } // namespace blink | 166 } // namespace blink |
167 | 167 |
168 #endif // Cursor_h | 168 #endif // Cursor_h |
OLD | NEW |