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

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

Issue 1731583003: blink: Rename enums and functions to not collide with chromium style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 1999-2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 12 matching lines...) Expand all
23 23
24 #include "core/CoreExport.h" 24 #include "core/CoreExport.h"
25 #include "core/css/CSSPrimitiveValue.h" 25 #include "core/css/CSSPrimitiveValue.h"
26 #include "core/css/CSSValue.h" 26 #include "core/css/CSSValue.h"
27 #include "wtf/RefPtr.h" 27 #include "wtf/RefPtr.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 class CORE_EXPORT CSSQuadValue : public CSSValue { 31 class CORE_EXPORT CSSQuadValue : public CSSValue {
32 public: 32 public:
33 enum SerializationType { 33 enum TypeForSerialization {
34 SerializeAsRect, 34 SerializeAsRect,
35 SerializeAsQuad 35 SerializeAsQuad
36 }; 36 };
37 37
38 static PassRefPtrWillBeRawPtr<CSSQuadValue> create(PassRefPtrWillBeRawPtr<CS SPrimitiveValue> top, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> right, PassRefPt rWillBeRawPtr<CSSPrimitiveValue> bottom, PassRefPtrWillBeRawPtr<CSSPrimitiveValu e> left, SerializationType serializationType) 38 static PassRefPtrWillBeRawPtr<CSSQuadValue> create(PassRefPtrWillBeRawPtr<CS SPrimitiveValue> top, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> right, PassRefPt rWillBeRawPtr<CSSPrimitiveValue> bottom, PassRefPtrWillBeRawPtr<CSSPrimitiveValu e> left, SerializationType serializationType)
39 { 39 {
40 return adoptRefWillBeNoop(new CSSQuadValue(top, right, bottom, left, ser ializationType)); 40 return adoptRefWillBeNoop(new CSSQuadValue(top, right, bottom, left, ser ializationType));
41 } 41 }
42 42
43 CSSPrimitiveValue* top() const { return m_top.get(); } 43 CSSPrimitiveValue* top() const { return m_top.get(); }
44 CSSPrimitiveValue* right() const { return m_right.get(); } 44 CSSPrimitiveValue* right() const { return m_right.get(); }
45 CSSPrimitiveValue* bottom() const { return m_bottom.get(); } 45 CSSPrimitiveValue* bottom() const { return m_bottom.get(); }
46 CSSPrimitiveValue* left() const { return m_left.get(); } 46 CSSPrimitiveValue* left() const { return m_left.get(); }
47 47
48 SerializationType serializationType() { return m_serializationType; } 48 TypeForSerialization serializationType() { return m_serializationType; }
49 49
50 String customCSSText() const; 50 String customCSSText() const;
51 51
52 bool equals(const CSSQuadValue& other) const 52 bool equals(const CSSQuadValue& other) const
53 { 53 {
54 return compareCSSValuePtr(m_top, other.m_top) 54 return compareCSSValuePtr(m_top, other.m_top)
55 && compareCSSValuePtr(m_right, other.m_right) 55 && compareCSSValuePtr(m_right, other.m_right)
56 && compareCSSValuePtr(m_left, other.m_left) 56 && compareCSSValuePtr(m_left, other.m_left)
57 && compareCSSValuePtr(m_bottom, other.m_bottom); 57 && compareCSSValuePtr(m_bottom, other.m_bottom);
58 } 58 }
(...skipping 15 matching lines...) Expand all
74 RefPtrWillBeMember<CSSPrimitiveValue> m_right; 74 RefPtrWillBeMember<CSSPrimitiveValue> m_right;
75 RefPtrWillBeMember<CSSPrimitiveValue> m_bottom; 75 RefPtrWillBeMember<CSSPrimitiveValue> m_bottom;
76 RefPtrWillBeMember<CSSPrimitiveValue> m_left; 76 RefPtrWillBeMember<CSSPrimitiveValue> m_left;
77 }; 77 };
78 78
79 DEFINE_CSS_VALUE_TYPE_CASTS(CSSQuadValue, isQuadValue()); 79 DEFINE_CSS_VALUE_TYPE_CASTS(CSSQuadValue, isQuadValue());
80 80
81 } // namespace blink 81 } // namespace blink
82 82
83 #endif // CSSQuadValue_h 83 #endif // CSSQuadValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698