Skip to content
Snippets Groups Projects
Commit d83c0191 authored by Connor McAdams's avatar Connor McAdams Committed by Alexandre Julliard
Browse files

uiautomationcore: Add support for UIAutomationType_Double properties.

parent 9639d0d6
No related branches found
No related tags found
No related merge requests found
......@@ -4237,19 +4237,13 @@ static void check_uia_prop_val(PROPERTYID prop_id, enum UIAutomationType type, V
break;
case UIAutomationType_Double:
todo_wine ok(V_VT(v) == VT_R8, "Unexpected VT %d\n", V_VT(v));
if (V_VT(v) != VT_R8)
break;
ok(V_VT(v) == VT_R8, "Unexpected VT %d\n", V_VT(v));
ok(V_R8(v) == uia_r8_prop_val, "Unexpected R8 %lf\n", V_R8(v));
ok_method_sequence(get_prop_seq, NULL);
break;
case UIAutomationType_DoubleArray:
todo_wine ok(V_VT(v) == (VT_ARRAY | VT_R8), "Unexpected VT %d\n", V_VT(v));
if (V_VT(v) != (VT_ARRAY | VT_R8))
break;
ok(V_VT(v) == (VT_ARRAY | VT_R8), "Unexpected VT %d\n", V_VT(v));
for (idx = 0; idx < ARRAY_SIZE(uia_r8_arr_prop_val); idx++)
{
double val;
......
......@@ -369,6 +369,24 @@ static HRESULT WINAPI uia_provider_get_prop_val(IWineUiaProvider *iface,
*ret_val = v;
break;
case UIAutomationType_Double:
if (V_VT(&v) != VT_R8)
{
WARN("Invalid vt %d for UIAutomationType_Double\n", V_VT(&v));
goto exit;
}
*ret_val = v;
break;
case UIAutomationType_DoubleArray:
if (V_VT(&v) != (VT_R8 | VT_ARRAY))
{
WARN("Invalid vt %d for UIAutomationType_DoubleArray\n", V_VT(&v));
goto exit;
}
*ret_val = v;
break;
case UIAutomationType_Element:
{
IRawElementProviderSimple *elprov;
......
......@@ -48,7 +48,8 @@ static const struct uia_prop_info default_uia_properties[] = {
{ &Transform2_ZoomLevel_Property_GUID, UIA_Transform2ZoomLevelPropertyId, },
{ &Name_Property_GUID, UIA_NamePropertyId, },
{ &GridItem_RowSpan_Property_GUID, UIA_GridItemRowSpanPropertyId, },
{ &Size_Property_GUID, UIA_SizePropertyId, },
{ &Size_Property_GUID, UIA_SizePropertyId,
UIAutomationType_DoubleArray, },
{ &IsTextPattern2Available_Property_GUID, UIA_IsTextPattern2AvailablePropertyId, },
{ &Styles_FillPatternStyle_Property_GUID, UIA_StylesFillPatternStylePropertyId, },
{ &FlowsTo_Property_GUID, UIA_FlowsToPropertyId,
......@@ -143,7 +144,8 @@ static const struct uia_prop_info default_uia_properties[] = {
{ &Drag_DropEffect_Property_GUID, UIA_DragDropEffectPropertyId, },
{ &MultipleView_CurrentView_Property_GUID, UIA_MultipleViewCurrentViewPropertyId, },
{ &Styles_FillColor_Property_GUID, UIA_StylesFillColorPropertyId, },
{ &Rotation_Property_GUID, UIA_RotationPropertyId, },
{ &Rotation_Property_GUID, UIA_RotationPropertyId,
UIAutomationType_Double, },
{ &SpreadsheetItem_Formula_Property_GUID, UIA_SpreadsheetItemFormulaPropertyId, },
{ &IsEnabled_Property_GUID, UIA_IsEnabledPropertyId, },
{ &LocalizedLandmarkType_Property_GUID, UIA_LocalizedLandmarkTypePropertyId, },
......@@ -198,7 +200,8 @@ static const struct uia_prop_info default_uia_properties[] = {
{ &Table_RowOrColumnMajor_Property_GUID, UIA_TableRowOrColumnMajorPropertyId, },
{ &IsDockPatternAvailable_Property_GUID, UIA_IsDockPatternAvailablePropertyId, },
{ &IsSynchronizedInputPatternAvailable_Property_GUID,UIA_IsSynchronizedInputPatternAvailablePropertyId, },
{ &OutlineThickness_Property_GUID, UIA_OutlineThicknessPropertyId, },
{ &OutlineThickness_Property_GUID, UIA_OutlineThicknessPropertyId,
UIAutomationType_DoubleArray, },
{ &IsLegacyIAccessiblePatternAvailable_Property_GUID,UIA_IsLegacyIAccessiblePatternAvailablePropertyId, },
{ &AnnotationObjects_Property_GUID, UIA_AnnotationObjectsPropertyId,
UIAutomationType_ElementArray, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment