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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h

Issue 2625553005: Changed EUnicodeBidi to an enum class and renamed its members (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>. 2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>.
3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> 6 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com>
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
(...skipping 2435 matching lines...) Expand 10 before | Expand all | Expand 10 after
2446 } 2446 }
2447 2447
2448 ASSERT_NOT_REACHED(); 2448 ASSERT_NOT_REACHED();
2449 return ETextTransform::kNone; 2449 return ETextTransform::kNone;
2450 } 2450 }
2451 2451
2452 template <> 2452 template <>
2453 inline CSSIdentifierValue::CSSIdentifierValue(EUnicodeBidi e) 2453 inline CSSIdentifierValue::CSSIdentifierValue(EUnicodeBidi e)
2454 : CSSValue(IdentifierClass) { 2454 : CSSValue(IdentifierClass) {
2455 switch (e) { 2455 switch (e) {
2456 case UBNormal: 2456 case EUnicodeBidi::kNormal:
2457 m_valueID = CSSValueNormal; 2457 m_valueID = CSSValueNormal;
2458 break; 2458 break;
2459 case Embed: 2459 case EUnicodeBidi::kEmbed:
2460 m_valueID = CSSValueEmbed; 2460 m_valueID = CSSValueEmbed;
2461 break; 2461 break;
2462 case Override: 2462 case EUnicodeBidi::kBidiOverride:
2463 m_valueID = CSSValueBidiOverride; 2463 m_valueID = CSSValueBidiOverride;
2464 break; 2464 break;
2465 case Isolate: 2465 case EUnicodeBidi::kIsolate:
2466 m_valueID = CSSValueIsolate; 2466 m_valueID = CSSValueIsolate;
2467 break; 2467 break;
2468 case IsolateOverride: 2468 case EUnicodeBidi::kIsolateOverride:
2469 m_valueID = CSSValueIsolateOverride; 2469 m_valueID = CSSValueIsolateOverride;
2470 break; 2470 break;
2471 case Plaintext: 2471 case EUnicodeBidi::kPlaintext:
2472 m_valueID = CSSValuePlaintext; 2472 m_valueID = CSSValuePlaintext;
2473 break; 2473 break;
2474 } 2474 }
2475 } 2475 }
2476 2476
2477 template <> 2477 template <>
2478 inline EUnicodeBidi CSSIdentifierValue::convertTo() const { 2478 inline EUnicodeBidi CSSIdentifierValue::convertTo() const {
2479 switch (m_valueID) { 2479 switch (m_valueID) {
2480 case CSSValueNormal: 2480 case CSSValueNormal:
2481 return UBNormal; 2481 return EUnicodeBidi::kNormal;
2482 case CSSValueEmbed: 2482 case CSSValueEmbed:
2483 return Embed; 2483 return EUnicodeBidi::kEmbed;
2484 case CSSValueBidiOverride: 2484 case CSSValueBidiOverride:
2485 return Override; 2485 return EUnicodeBidi::kBidiOverride;
2486 case CSSValueIsolate: 2486 case CSSValueIsolate:
2487 case CSSValueWebkitIsolate: 2487 case CSSValueWebkitIsolate:
2488 return Isolate; 2488 return EUnicodeBidi::kIsolate;
2489 case CSSValueIsolateOverride: 2489 case CSSValueIsolateOverride:
2490 case CSSValueWebkitIsolateOverride: 2490 case CSSValueWebkitIsolateOverride:
2491 return IsolateOverride; 2491 return EUnicodeBidi::kIsolateOverride;
2492 case CSSValuePlaintext: 2492 case CSSValuePlaintext:
2493 case CSSValueWebkitPlaintext: 2493 case CSSValueWebkitPlaintext:
2494 return Plaintext; 2494 return EUnicodeBidi::kPlaintext;
2495 default: 2495 default:
2496 break; 2496 break;
2497 } 2497 }
2498 2498
2499 ASSERT_NOT_REACHED(); 2499 ASSERT_NOT_REACHED();
2500 return UBNormal; 2500 return EUnicodeBidi::kNormal;
2501 } 2501 }
2502 2502
2503 template <> 2503 template <>
2504 inline CSSIdentifierValue::CSSIdentifierValue(EUserDrag e) 2504 inline CSSIdentifierValue::CSSIdentifierValue(EUserDrag e)
2505 : CSSValue(IdentifierClass) { 2505 : CSSValue(IdentifierClass) {
2506 switch (e) { 2506 switch (e) {
2507 case DRAG_AUTO: 2507 case DRAG_AUTO:
2508 m_valueID = CSSValueAuto; 2508 m_valueID = CSSValueAuto;
2509 break; 2509 break;
2510 case DRAG_NONE: 2510 case DRAG_NONE:
(...skipping 2274 matching lines...) Expand 10 before | Expand all | Expand 10 after
4785 default: 4785 default:
4786 break; 4786 break;
4787 } 4787 }
4788 ASSERT_NOT_REACHED(); 4788 ASSERT_NOT_REACHED();
4789 return ContainsNone; 4789 return ContainsNone;
4790 } 4790 }
4791 4791
4792 } // namespace blink 4792 } // namespace blink
4793 4793
4794 #endif 4794 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698