Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyleConstants.h

Issue 2370673002: Changed EDisplay to an enum class and renamed its members to be keywords (Closed)
Patch Set: Comment Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 CURSOR_ALL_SCROLL, 440 CURSOR_ALL_SCROLL,
441 CURSOR_WEBKIT_GRAB, 441 CURSOR_WEBKIT_GRAB,
442 CURSOR_WEBKIT_GRABBING, 442 CURSOR_WEBKIT_GRABBING,
443 443
444 // The following are handled as exceptions so don't need to match. 444 // The following are handled as exceptions so don't need to match.
445 CURSOR_COPY, 445 CURSOR_COPY,
446 CURSOR_NONE 446 CURSOR_NONE
447 }; 447 };
448 448
449 // The order of this enum must match the order of the display values in CSSValue Keywords.in. 449 // The order of this enum must match the order of the display values in CSSValue Keywords.in.
450 enum EDisplay { 450 enum class EDisplay : unsigned {
451 INLINE, BLOCK, LIST_ITEM, INLINE_BLOCK, 451 Inline, Block, ListItem, InlineBlock,
452 TABLE, INLINE_TABLE, TABLE_ROW_GROUP, 452 Table, InlineTable, TableRowGroup,
453 TABLE_HEADER_GROUP, TABLE_FOOTER_GROUP, TABLE_ROW, 453 TableHeaderGroup, TableFooterGroup, TableRow,
454 TABLE_COLUMN_GROUP, TABLE_COLUMN, TABLE_CELL, 454 TableColumnGroup, TableColumn, TableCell,
455 TABLE_CAPTION, BOX, INLINE_BOX, 455 TableCaption, Box, InlineBox,
456 FLEX, INLINE_FLEX, 456 Flex, InlineFlex,
457 GRID, INLINE_GRID, 457 Grid, InlineGrid,
458 NONE 458 None
459 }; 459 };
460 460
461 enum EInsideLink { 461 enum EInsideLink {
462 NotInsideLink, InsideUnvisitedLink, InsideVisitedLink 462 NotInsideLink, InsideUnvisitedLink, InsideVisitedLink
463 }; 463 };
464 464
465 enum EPointerEvents { 465 enum EPointerEvents {
466 PE_NONE, PE_AUTO, PE_STROKE, PE_FILL, PE_PAINTED, PE_VISIBLE, 466 PE_NONE, PE_AUTO, PE_STROKE, PE_FILL, PE_PAINTED, PE_VISIBLE,
467 PE_VISIBLE_STROKE, PE_VISIBLE_FILL, PE_VISIBLE_PAINTED, PE_BOUNDINGBOX, 467 PE_VISIBLE_STROKE, PE_VISIBLE_FILL, PE_VISIBLE_PAINTED, PE_BOUNDINGBOX,
468 PE_ALL 468 PE_ALL
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 620
621 enum AutoRepeatType { 621 enum AutoRepeatType {
622 NoAutoRepeat, 622 NoAutoRepeat,
623 AutoFill, 623 AutoFill,
624 AutoFit 624 AutoFit
625 }; 625 };
626 626
627 } // namespace blink 627 } // namespace blink
628 628
629 #endif // ComputedStyleConstants_h 629 #endif // ComputedStyleConstants_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/svg/SVGGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698