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

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

Issue 2878333002: Make ETextModify an enum class. (Closed)
Patch Set: 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 kFlowRowReverse, 194 kFlowRowReverse,
195 kFlowColumn, 195 kFlowColumn,
196 kFlowColumnReverse 196 kFlowColumnReverse
197 }; 197 };
198 enum EFlexWrap { kFlexNoWrap, kFlexWrap, kFlexWrapReverse }; 198 enum EFlexWrap { kFlexNoWrap, kFlexWrap, kFlexWrapReverse };
199 199
200 enum class ETextSecurity { kNone, kDisc, kCircle, kSquare }; 200 enum class ETextSecurity { kNone, kDisc, kCircle, kSquare };
201 201
202 // CSS3 User Modify Properties 202 // CSS3 User Modify Properties
203 203
204 enum EUserModify { READ_ONLY, READ_WRITE, READ_WRITE_PLAINTEXT_ONLY }; 204 enum class EUserModify { kReadOnly, kReadWrite, kReadWritePlaintextOnly };
205 205
206 // CSS3 User Drag Values 206 // CSS3 User Drag Values
207 207
208 enum EUserDrag { DRAG_AUTO, DRAG_NONE, DRAG_ELEMENT }; 208 enum EUserDrag { DRAG_AUTO, DRAG_NONE, DRAG_ELEMENT };
209 209
210 // CSS3 User Select Values 210 // CSS3 User Select Values
211 211
212 enum EUserSelect { SELECT_NONE, SELECT_TEXT, SELECT_ALL }; 212 enum EUserSelect { SELECT_NONE, SELECT_TEXT, SELECT_ALL };
213 213
214 // CSS3 Image Values 214 // CSS3 Image Values
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 // fraction, which leaves 20 bits for the integer part, making 1048575 488 // fraction, which leaves 20 bits for the integer part, making 1048575
489 // the largest number. 489 // the largest number.
490 490
491 static const int kBorderWidthFractionalBits = 6; 491 static const int kBorderWidthFractionalBits = 6;
492 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; 492 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
493 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; 493 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
494 494
495 } // namespace blink 495 } // namespace blink
496 496
497 #endif // ComputedStyleConstants_h 497 #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