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

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

Issue 2868783005: Make ETextSecurity an enum class. (Closed)
Patch Set: Rebase Created 3 years, 7 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 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * 10 *
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // CSS3 Flexbox Properties 185 // CSS3 Flexbox Properties
186 186
187 enum EFlexDirection { 187 enum EFlexDirection {
188 kFlowRow, 188 kFlowRow,
189 kFlowRowReverse, 189 kFlowRowReverse,
190 kFlowColumn, 190 kFlowColumn,
191 kFlowColumnReverse 191 kFlowColumnReverse
192 }; 192 };
193 enum EFlexWrap { kFlexNoWrap, kFlexWrap, kFlexWrapReverse }; 193 enum EFlexWrap { kFlexNoWrap, kFlexWrap, kFlexWrapReverse };
194 194
195 enum ETextSecurity { TSNONE, TSDISC, TSCIRCLE, TSSQUARE }; 195 enum class ETextSecurity { kNone, kDisc, kCircle, kSquare };
196 196
197 // CSS3 User Modify Properties 197 // CSS3 User Modify Properties
198 198
199 enum EUserModify { READ_ONLY, READ_WRITE, READ_WRITE_PLAINTEXT_ONLY }; 199 enum EUserModify { READ_ONLY, READ_WRITE, READ_WRITE_PLAINTEXT_ONLY };
200 200
201 // CSS3 User Drag Values 201 // CSS3 User Drag Values
202 202
203 enum EUserDrag { DRAG_AUTO, DRAG_NONE, DRAG_ELEMENT }; 203 enum EUserDrag { DRAG_AUTO, DRAG_NONE, DRAG_ELEMENT };
204 204
205 // CSS3 User Select Values 205 // CSS3 User Select Values
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 // fraction, which leaves 20 bits for the integer part, making 1048575 477 // fraction, which leaves 20 bits for the integer part, making 1048575
478 // the largest number. 478 // the largest number.
479 479
480 static const int kBorderWidthFractionalBits = 6; 480 static const int kBorderWidthFractionalBits = 6;
481 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; 481 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
482 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; 482 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
483 483
484 } // namespace blink 484 } // namespace blink
485 485
486 #endif // ComputedStyleConstants_h 486 #endif // ComputedStyleConstants_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698