| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2006 Rob Buis <buis@kde.org> |
| 3 * Copyright (C) 2008 Apple Inc. All right reserved. | 3 * Copyright (C) 2008 Apple Inc. All right reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef CSSCursorImageValue_h | 21 #ifndef CSSCursorImageValue_h |
| 22 #define CSSCursorImageValue_h | 22 #define CSSCursorImageValue_h |
| 23 | 23 |
| 24 #include "core/css/CSSValue.h" | 24 #include "core/css/CSSValue.h" |
| 25 #include "platform/geometry/IntPoint.h" | 25 #include "platform/geometry/IntPoint.h" |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 namespace cssvalue { |
| 30 |
| 29 class CSSCursorImageValue : public CSSValue { | 31 class CSSCursorImageValue : public CSSValue { |
| 30 public: | 32 public: |
| 31 static const CSSCursorImageValue* create(const CSSValue& imageValue, | 33 static const CSSCursorImageValue* create(const CSSValue& imageValue, |
| 32 bool hotSpotSpecified, | 34 bool hotSpotSpecified, |
| 33 const IntPoint& hotSpot) { | 35 const IntPoint& hotSpot) { |
| 34 return new CSSCursorImageValue(imageValue, hotSpotSpecified, hotSpot); | 36 return new CSSCursorImageValue(imageValue, hotSpotSpecified, hotSpot); |
| 35 } | 37 } |
| 36 | 38 |
| 37 ~CSSCursorImageValue(); | 39 ~CSSCursorImageValue(); |
| 38 | 40 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 51 bool hotSpotSpecified, | 53 bool hotSpotSpecified, |
| 52 const IntPoint& hotSpot); | 54 const IntPoint& hotSpot); |
| 53 | 55 |
| 54 Member<const CSSValue> m_imageValue; | 56 Member<const CSSValue> m_imageValue; |
| 55 IntPoint m_hotSpot; | 57 IntPoint m_hotSpot; |
| 56 bool m_hotSpotSpecified; | 58 bool m_hotSpotSpecified; |
| 57 }; | 59 }; |
| 58 | 60 |
| 59 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCursorImageValue, isCursorImageValue()); | 61 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCursorImageValue, isCursorImageValue()); |
| 60 | 62 |
| 63 } // namespace cssvalue |
| 64 |
| 61 } // namespace blink | 65 } // namespace blink |
| 62 | 66 |
| 63 #endif // CSSCursorImageValue_h | 67 #endif // CSSCursorImageValue_h |
| OLD | NEW |