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

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

Issue 2200053002: Add TypeTraits template for checking safe bitfields (WIP) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_make_visibility_enum_class_rebase
Patch Set: Created 4 years, 4 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 enum EEmptyCells { 384 enum EEmptyCells {
385 EmptyCellsShow, EmptyCellsHide 385 EmptyCellsShow, EmptyCellsHide
386 }; 386 };
387 387
388 enum ECaptionSide { 388 enum ECaptionSide {
389 CaptionSideTop, CaptionSideBottom, CaptionSideLeft, CaptionSideRight 389 CaptionSideTop, CaptionSideBottom, CaptionSideLeft, CaptionSideRight
390 }; 390 };
391 391
392 enum EListStylePosition { ListStylePositionOutside, ListStylePositionInside }; 392 enum EListStylePosition { ListStylePositionOutside, ListStylePositionInside };
393 393
394 // TODO(sashab): Add a static_assert when this is used in bitfields to ensure it
395 // uses unsigned as the underlying type.
396 enum class EVisibility : unsigned { Visible, Hidden, Collapse }; 394 enum class EVisibility : unsigned { Visible, Hidden, Collapse };
397 395
398 enum ECursor { 396 enum ECursor {
399 // The following must match the order in CSSValueKeywords.in. 397 // The following must match the order in CSSValueKeywords.in.
400 CURSOR_AUTO, 398 CURSOR_AUTO,
401 CURSOR_CROSS, 399 CURSOR_CROSS,
402 CURSOR_DEFAULT, 400 CURSOR_DEFAULT,
403 CURSOR_POINTER, 401 CURSOR_POINTER,
404 CURSOR_MOVE, 402 CURSOR_MOVE,
405 CURSOR_VERTICAL_TEXT, 403 CURSOR_VERTICAL_TEXT,
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 618
621 enum AutoRepeatType { 619 enum AutoRepeatType {
622 NoAutoRepeat, 620 NoAutoRepeat,
623 AutoFill, 621 AutoFill,
624 AutoFit 622 AutoFit
625 }; 623 };
626 624
627 } // namespace blink 625 } // namespace blink
628 626
629 #endif // ComputedStyleConstants_h 627 #endif // ComputedStyleConstants_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/wtf/TypeTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698