| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
| 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 * | 23 * |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef ComputedStyleConstants_h | 26 #ifndef ComputedStyleConstants_h |
| 27 #define ComputedStyleConstants_h | 27 #define ComputedStyleConstants_h |
| 28 | 28 |
| 29 #include "core/ComputedStyleBaseConstants.h" |
| 29 #include <cstddef> | 30 #include <cstddef> |
| 30 | 31 |
| 31 namespace blink { | 32 namespace blink { |
| 32 | 33 |
| 33 // TODO(sashab): Change these enums to enum classes with an unsigned underlying | 34 // TODO(sashab): Change these enums to enum classes with an unsigned underlying |
| 34 // type. Enum classes provide better type safety, and forcing an unsigned | 35 // type. Enum classes provide better type safety, and forcing an unsigned |
| 35 // underlying type prevents msvc from interpreting enums as negative numbers. | 36 // underlying type prevents msvc from interpreting enums as negative numbers. |
| 36 // See: crbug.com/628043 | 37 // See: crbug.com/628043 |
| 37 | 38 |
| 38 // Sides used when drawing borders and outlines. The values should run clockwise
from top. | 39 // Sides used when drawing borders and outlines. The values should run clockwise
from top. |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 enum EEmptyCells { | 397 enum EEmptyCells { |
| 397 EmptyCellsShow, EmptyCellsHide | 398 EmptyCellsShow, EmptyCellsHide |
| 398 }; | 399 }; |
| 399 | 400 |
| 400 enum ECaptionSide { | 401 enum ECaptionSide { |
| 401 CaptionSideTop, CaptionSideBottom, CaptionSideLeft, CaptionSideRight | 402 CaptionSideTop, CaptionSideBottom, CaptionSideLeft, CaptionSideRight |
| 402 }; | 403 }; |
| 403 | 404 |
| 404 enum EListStylePosition { ListStylePositionOutside, ListStylePositionInside }; | 405 enum EListStylePosition { ListStylePositionOutside, ListStylePositionInside }; |
| 405 | 406 |
| 406 // TODO(sashab): Add a static_assert when this is used in bitfields to ensure it | |
| 407 // uses unsigned as the underlying type. | |
| 408 enum class EVisibility : unsigned { Visible, Hidden, Collapse }; | |
| 409 | |
| 410 enum ECursor { | 407 enum ECursor { |
| 411 // The following must match the order in CSSValueKeywords.in. | 408 // The following must match the order in CSSValueKeywords.in. |
| 412 CURSOR_AUTO, | 409 CURSOR_AUTO, |
| 413 CURSOR_CROSS, | 410 CURSOR_CROSS, |
| 414 CURSOR_DEFAULT, | 411 CURSOR_DEFAULT, |
| 415 CURSOR_POINTER, | 412 CURSOR_POINTER, |
| 416 CURSOR_MOVE, | 413 CURSOR_MOVE, |
| 417 CURSOR_VERTICAL_TEXT, | 414 CURSOR_VERTICAL_TEXT, |
| 418 CURSOR_CELL, | 415 CURSOR_CELL, |
| 419 CURSOR_CONTEXT_MENU, | 416 CURSOR_CONTEXT_MENU, |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 | 622 |
| 626 enum AutoRepeatType { | 623 enum AutoRepeatType { |
| 627 NoAutoRepeat, | 624 NoAutoRepeat, |
| 628 AutoFill, | 625 AutoFill, |
| 629 AutoFit | 626 AutoFit |
| 630 }; | 627 }; |
| 631 | 628 |
| 632 } // namespace blink | 629 } // namespace blink |
| 633 | 630 |
| 634 #endif // ComputedStyleConstants_h | 631 #endif // ComputedStyleConstants_h |
| OLD | NEW |