| Index: Source/core/rendering/style/StyleNavigationData.h
|
| diff --git a/Source/core/rendering/style/StyleNavigationData.h b/Source/core/rendering/style/StyleNavigationData.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4e60efde925971414cb7dd65a6156451d86e415e
|
| --- /dev/null
|
| +++ b/Source/core/rendering/style/StyleNavigationData.h
|
| @@ -0,0 +1,68 @@
|
| +/*
|
| + * Copyright (C) 2011 Kyounga Ra (kyounga.ra@gmail.com)
|
| + * Copyright (C) 2014 Opera Software ASA. All rights reserved.
|
| + *
|
| + * This library is free software; you can redistribute it and/or
|
| + * modify it under the terms of the GNU Library General Public
|
| + * License as published by the Free Software Foundation; either
|
| + * version 2 of the License, or (at your option) any later version.
|
| + *
|
| + * This library is distributed in the hope that it will be useful,
|
| + * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| + * Library General Public License for more details.
|
| + *
|
| + * You should have received a copy of the GNU Library General Public License
|
| + * along with this library; see the file COPYING.LIB. If not, write to
|
| + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
| + * Boston, MA 02110-1301, USA.
|
| + *
|
| + */
|
| +
|
| +#ifndef StyleNavigationData_h
|
| +#define StyleNavigationData_h
|
| +
|
| +#include "core/rendering/style/StyleNavigationValue.h"
|
| +#include "wtf/PassRefPtr.h"
|
| +#include "wtf/RefCounted.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class StyleNavigationData : public RefCounted<StyleNavigationData> {
|
| +public:
|
| + static PassRefPtr<StyleNavigationData> create() { return adoptRef(new StyleNavigationData()); }
|
| + PassRefPtr<StyleNavigationData> copy() const { return adoptRef(new StyleNavigationData(*this)); }
|
| +
|
| + bool operator==(const StyleNavigationData& o) const
|
| + {
|
| + return m_up == o.m_up && m_down == o.m_down && m_left == o.m_left && m_right == o.m_right;
|
| + }
|
| +
|
| + bool operator!=(const StyleNavigationData& o) const
|
| + {
|
| + return !(*this == o);
|
| + }
|
| +
|
| + const StyleNavigationValue& up() const { return m_up; }
|
| + const StyleNavigationValue& down() const { return m_down; }
|
| + const StyleNavigationValue& left() const { return m_left; }
|
| + const StyleNavigationValue& right() const { return m_right; }
|
| +
|
| + void setUp(const StyleNavigationValue& value) { m_up = value; }
|
| + void setDown(const StyleNavigationValue& value) { m_down = value; }
|
| + void setLeft(const StyleNavigationValue& value) { m_left = value; }
|
| + void setRight(const StyleNavigationValue& value) { m_right = value; }
|
| +
|
| +private:
|
| + StyleNavigationData();
|
| + StyleNavigationData(const StyleNavigationData&);
|
| +
|
| + StyleNavigationValue m_up;
|
| + StyleNavigationValue m_down;
|
| + StyleNavigationValue m_left;
|
| + StyleNavigationValue m_right;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // StyleNavigationData_h
|
|
|