OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights 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 SKY_ENGINE_CORE_CSS_RECT_H_ | 21 #ifndef SKY_ENGINE_CORE_CSS_RECT_H_ |
22 #define SKY_ENGINE_CORE_CSS_RECT_H_ | 22 #define SKY_ENGINE_CORE_CSS_RECT_H_ |
23 | 23 |
24 #include "sky/engine/bindings/core/v8/ScriptWrappable.h" | 24 #include "sky/engine/tonic/dart_wrappable.h" |
25 #include "sky/engine/core/css/CSSPrimitiveValue.h" | 25 #include "sky/engine/core/css/CSSPrimitiveValue.h" |
26 #include "sky/engine/wtf/RefPtr.h" | 26 #include "sky/engine/wtf/RefPtr.h" |
27 #include "sky/engine/wtf/text/StringBuilder.h" | 27 #include "sky/engine/wtf/text/StringBuilder.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 class RectBase : public RefCounted<RectBase>, public ScriptWrappableBase { | 31 class RectBase : public RefCounted<RectBase> { |
32 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(RectBase); | 32 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(RectBase); |
33 public: | 33 public: |
34 CSSPrimitiveValue* top() const { return m_top.get(); } | 34 CSSPrimitiveValue* top() const { return m_top.get(); } |
35 CSSPrimitiveValue* right() const { return m_right.get(); } | 35 CSSPrimitiveValue* right() const { return m_right.get(); } |
36 CSSPrimitiveValue* bottom() const { return m_bottom.get(); } | 36 CSSPrimitiveValue* bottom() const { return m_bottom.get(); } |
37 CSSPrimitiveValue* left() const { return m_left.get(); } | 37 CSSPrimitiveValue* left() const { return m_left.get(); } |
38 | 38 |
39 void setTop(PassRefPtr<CSSPrimitiveValue> top) { m_top = top; } | 39 void setTop(PassRefPtr<CSSPrimitiveValue> top) { m_top = top; } |
40 void setRight(PassRefPtr<CSSPrimitiveValue> right) { m_right = right; } | 40 void setRight(PassRefPtr<CSSPrimitiveValue> right) { m_right = right; } |
41 void setBottom(PassRefPtr<CSSPrimitiveValue> bottom) { m_bottom = bottom; } | 41 void setBottom(PassRefPtr<CSSPrimitiveValue> bottom) { m_bottom = bottom; } |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 } | 126 } |
127 | 127 |
128 // NOTE: If adding fields to this class please make the RectBase trace | 128 // NOTE: If adding fields to this class please make the RectBase trace |
129 // method virtual and add a trace method in this subclass tracing the new | 129 // method virtual and add a trace method in this subclass tracing the new |
130 // fields. | 130 // fields. |
131 }; | 131 }; |
132 | 132 |
133 } // namespace blink | 133 } // namespace blink |
134 | 134 |
135 #endif // SKY_ENGINE_CORE_CSS_RECT_H_ | 135 #endif // SKY_ENGINE_CORE_CSS_RECT_H_ |
OLD | NEW |