Searched refs:UnitType (Results 1 - 25 of 27) sorted by relevance

12

/external/chromium_org/chrome/browser/resources/print_preview/data/
H A Dmeasurement_system.js13 * @param {!print_preview.MeasurementSystem.UnitType} unitType Measurement
44 MeasurementSystem.UnitType = {
51 * @type {!Object.<!print_preview.MeasurementSystem.UnitType, number>}
55 MeasurementSystem.Precision_[MeasurementSystem.UnitType.METRIC] = 0.5;
56 MeasurementSystem.Precision_[MeasurementSystem.UnitType.IMPERIAL] = 0.01;
60 * @type {!Object.<!print_preview.MeasurementSystem.UnitType, number>}
64 MeasurementSystem.DecimalPlaces_[MeasurementSystem.UnitType.METRIC] = 1;
65 MeasurementSystem.DecimalPlaces_[MeasurementSystem.UnitType.IMPERIAL] = 2;
86 if (this.unitType_ == MeasurementSystem.UnitType.METRIC) {
88 } else if (this.unitType_ == MeasurementSystem.UnitType
[all...]
H A Dprint_ticket_store.js62 ',', '.', print_preview.MeasurementSystem.UnitType.IMPERIAL);
294 * @param {!print_preview.MeasurementSystem.UnitType} unitType Type of unit
/external/chromium_org/third_party/WebKit/Source/core/css/
H A DCSSPrimitiveValue.h74 enum UnitType { enum in class:blink::CSSPrimitiveValue
168 static UnitCategory unitCategory(UnitType);
170 static UnitType fromName(const String& unit);
189 bool isViewportPercentageLength() const { return isViewportPercentageLength(static_cast<UnitType>(m_primitiveUnitType)); }
190 static bool isViewportPercentageLength(UnitType type) { return type >= CSS_VW && type <= CSS_VMAX; }
191 static bool isLength(UnitType type)
208 static bool isDotsPerInch(UnitType type) { return type == CSS_DPI; }
209 static bool isDotsPerPixel(UnitType type) { return type == CSS_DPPX; }
210 static bool isDotsPerCentimeter(UnitType type) { return type == CSS_DPCM; }
211 static bool isResolution(UnitType typ
[all...]
H A DMediaValues.h33 static bool computeLengthImpl(double value, CSSPrimitiveValue::UnitType, unsigned defaultFontSize, unsigned viewportWidth, unsigned viewportHeight, double& result);
35 static bool computeLength(double value, CSSPrimitiveValue::UnitType type, unsigned defaultFontSize, unsigned viewportWidth, unsigned viewportHeight, T& result)
43 virtual bool computeLength(double value, CSSPrimitiveValue::UnitType, int& result) const = 0;
44 virtual bool computeLength(double value, CSSPrimitiveValue::UnitType, double& result) const = 0;
H A DMediaValuesDynamic.h20 virtual bool computeLength(double value, CSSPrimitiveValue::UnitType, int& result) const OVERRIDE;
21 virtual bool computeLength(double value, CSSPrimitiveValue::UnitType, double& result) const OVERRIDE;
H A DCSSPrimitiveValue.cpp54 static inline bool isValidCSSUnitTypeForDoubleConversion(CSSPrimitiveValue::UnitType unitType)
113 typedef HashMap<String, CSSPrimitiveValue::UnitType> StringToUnitTable;
147 CSSPrimitiveValue::UnitType CSSPrimitiveValue::fromName(const String& unit)
153 CSSPrimitiveValue::UnitCategory CSSPrimitiveValue::unitCategory(UnitType type)
210 CSSPrimitiveValue::UnitType CSSPrimitiveValue::primitiveType() const
216 return static_cast<UnitType>(m_primitiveUnitType);
281 CSSPrimitiveValue::CSSPrimitiveValue(double num, UnitType type)
289 CSSPrimitiveValue::CSSPrimitiveValue(const String& str, UnitType type)
304 CSSPrimitiveValue::CSSPrimitiveValue(RGBA32 color, UnitType type)
440 switch (static_cast<UnitType>(m_primitiveUnitTyp
[all...]
H A DCSSValuePool.h53 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createValue(double value, CSSPrimitiveValue::UnitType);
54 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createValue(const String& value, CSSPrimitiveValue::UnitType type) { return CSSPrimitiveValue::create(value, type); }
H A DMediaValuesCached.h57 virtual bool computeLength(double value, CSSPrimitiveValue::UnitType, int& result) const OVERRIDE;
58 virtual bool computeLength(double value, CSSPrimitiveValue::UnitType, double& result) const OVERRIDE;
H A DMediaValuesDynamic.cpp40 bool MediaValuesDynamic::computeLength(double value, CSSPrimitiveValue::UnitType type, int& result) const
50 bool MediaValuesDynamic::computeLength(double value, CSSPrimitiveValue::UnitType type, double& result) const
H A DMediaQueryExp.h45 CSSPrimitiveValue::UnitType unit;
H A DMediaValuesTest.cpp17 CSSPrimitiveValue::UnitType type;
H A DMediaValuesCached.cpp79 bool MediaValuesCached::computeLength(double value, CSSPrimitiveValue::UnitType type, int& result) const
84 bool MediaValuesCached::computeLength(double value, CSSPrimitiveValue::UnitType type, double& result) const
H A DCSSCalculationValue.cpp50 static CalculationCategory unitCategory(CSSPrimitiveValue::UnitType type)
88 static bool hasDoubleValue(CSSPrimitiveValue::UnitType type)
195 static PassRefPtrWillBeRawPtr<CSSCalcPrimitiveValue> create(double value, CSSPrimitiveValue::UnitType type, bool isInteger)
271 virtual CSSPrimitiveValue::UnitType primitiveType() const OVERRIDE
368 CSSPrimitiveValue::UnitType leftType = leftSide->primitiveType();
370 CSSPrimitiveValue::UnitType rightType = rightSide->primitiveType();
375 CSSPrimitiveValue::UnitType canonicalType = CSSPrimitiveValue::canonicalUnitTypeForCategory(leftUnitCategory);
400 CSSPrimitiveValue::UnitType otherType = otherSide->primitiveType();
511 virtual CSSPrimitiveValue::UnitType primitiveType() const OVERRIDE
523 CSSPrimitiveValue::UnitType leftTyp
[all...]
H A DCSSCalculationValue.h86 virtual CSSPrimitiveValue::UnitType primitiveType() const = 0;
H A DMediaList.cpp252 static void addResolutionWarningMessageToConsole(Document* document, const String& serializedExpression, CSSPrimitiveValue::UnitType type)
293 CSSPrimitiveValue::UnitType suspiciousType = CSSPrimitiveValue::CSS_UNKNOWN;
H A DCSSValuePool.cpp93 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> CSSValuePool::createValue(double value, CSSPrimitiveValue::UnitType type)
H A DMediaValues.cpp141 bool MediaValues::computeLengthImpl(double value, CSSPrimitiveValue::UnitType type, unsigned defaultFontSize, unsigned viewportWidth, unsigned viewportHeight, double& result)
H A DMediaQueryExp.cpp248 expValue.unit = (CSSPrimitiveValue::UnitType)value->unit;
/external/chromium_org/third_party/WebKit/Source/core/css/parser/
H A DMediaQueryToken.h69 CSSPrimitiveValue::UnitType unitType() const { return m_unit; }
79 CSSPrimitiveValue::UnitType m_unit;
H A DCSSPropertyParser.cpp331 return cssValuePool().createValue(value->fValue, static_cast<CSSPrimitiveValue::UnitType>(value->unit));
4905 static bool parseColorIntOrPercentage(const CharacterType*& string, const CharacterType* end, const char terminator, CSSPrimitiveValue::UnitType& expect, int& value)
5064 CSSPrimitiveValue::UnitType expect = CSSPrimitiveValue::CSS_UNKNOWN;
6219 result = cssValuePool().createValue(a->fValue, static_cast<CSSPrimitiveValue::UnitType>(a->unit));
7151 filterValue->append(cssValuePool().createValue(amount, static_cast<CSSPrimitiveValue::UnitType>(value->unit)));
7163 filterValue->append(cssValuePool().createValue(value->fValue, static_cast<CSSPrimitiveValue::UnitType>(value->unit)));
8085 parsedValue = CSSPrimitiveValue::create(value->string, (CSSPrimitiveValue::UnitType) value->unit);
8087 parsedValue = CSSPrimitiveValue::create(value->fValue, (CSSPrimitiveValue::UnitType) value->unit);
8117 ret->append(CSSPrimitiveValue::create(value->fValue, (CSSPrimitiveValue::UnitType) value->unit));
/external/chromium_org/third_party/WebKit/Source/core/animation/
H A DLengthStyleInterpolation.cpp45 static CSSPrimitiveValue::UnitType toUnitType(int lengthUnitType)
47 return static_cast<CSSPrimitiveValue::UnitType>(CSSPrimitiveValue::lengthUnitTypeToUnitType(static_cast<CSSPrimitiveValue::LengthUnitType>(lengthUnitType)));
H A DLengthStyleInterpolationTest.cpp32 static void testPrimitiveValue(RefPtrWillBeRawPtr<CSSValue> value, double doubleValue, CSSPrimitiveValue::UnitType unitType)
/external/chromium_org/third_party/WebKit/Source/core/svg/
H A DSVGLength.cpp313 CSSPrimitiveValue::UnitType cssType = CSSPrimitiveValue::CSS_UNKNOWN;
/external/chromium_org/chrome/browser/resources/print_preview/
H A Dnative_layer.js411 var unitType = print_preview.MeasurementSystem.UnitType.IMPERIAL;
760 * @param {!print_preview.MeasurementSystem.UnitType} unitType Unit type of
908 * @return {!print_preview.MeasurementSystem.UnitType} Unit type of local
/external/chromium_org/third_party/WebKit/Source/core/dom/
H A DElement.h256 bool setInlineStyleProperty(CSSPropertyID, double value, CSSPrimitiveValue::UnitType, bool important = false);
500 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPropertyID, double value, CSSPrimitiveValue::UnitType);

Completed in 203 milliseconds

12