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

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

Issue 2882093002: Make EUserSelect 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // CSS3 User Modify Properties 194 // CSS3 User Modify Properties
195 195
196 enum class EUserModify { kReadOnly, kReadWrite, kReadWritePlaintextOnly }; 196 enum class EUserModify { kReadOnly, kReadWrite, kReadWritePlaintextOnly };
197 197
198 // CSS3 User Drag Values 198 // CSS3 User Drag Values
199 199
200 enum EUserDrag { DRAG_AUTO, DRAG_NONE, DRAG_ELEMENT }; 200 enum EUserDrag { DRAG_AUTO, DRAG_NONE, DRAG_ELEMENT };
201 201
202 // CSS3 User Select Values 202 // CSS3 User Select Values
203 203
204 enum EUserSelect { SELECT_NONE, SELECT_TEXT, SELECT_ALL }; 204 enum class EUserSelect { kNone, kText, kAll };
205 205
206 // CSS3 Image Values 206 // CSS3 Image Values
207 enum ObjectFit { 207 enum ObjectFit {
208 kObjectFitFill, 208 kObjectFitFill,
209 kObjectFitContain, 209 kObjectFitContain,
210 kObjectFitCover, 210 kObjectFitCover,
211 kObjectFitNone, 211 kObjectFitNone,
212 kObjectFitScaleDown 212 kObjectFitScaleDown
213 }; 213 };
214 214
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 // fraction, which leaves 20 bits for the integer part, making 1048575 474 // fraction, which leaves 20 bits for the integer part, making 1048575
475 // the largest number. 475 // the largest number.
476 476
477 static const int kBorderWidthFractionalBits = 6; 477 static const int kBorderWidthFractionalBits = 6;
478 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; 478 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
479 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; 479 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
480 480
481 } // namespace blink 481 } // namespace blink
482 482
483 #endif // ComputedStyleConstants_h 483 #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