Commit 08c69bc2 authored by Jose Dapena Paz's avatar Jose Dapena Paz Committed by Commit Bot

A11y: Fix return values for AtkValue implementation.

There were several typos in AXPlatformNodeAuraLinux implementation
of AtkValue interface.

Change-Id: Ifdcee50d0425f71f30b651d35197c663723adf8c
Reviewed-on: https://chromium-review.googlesource.com/794137Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: José Dapena Paz <jose.dapena@lge.com>
Cr-Commit-Position: refs/heads/master@{#519880}
parent 3bda8e07
......@@ -547,6 +547,8 @@ static void ax_platform_node_auralinux_get_minimum_increment(
if (!obj)
return;
memset(value, 0, sizeof(*value));
g_value_init(value, G_TYPE_FLOAT);
g_value_set_float(value, obj->GetStepAttribute());
}
......@@ -1232,7 +1234,7 @@ AtkHyperlink* AXPlatformNodeAuraLinux::GetAtkHyperlink() {
void AXPlatformNodeAuraLinux::GetFloatAttributeInGValue(AXFloatAttribute attr,
GValue* value) {
float float_val;
if (GetFloatAttribute(ui::AX_ATTR_MAX_VALUE_FOR_RANGE, &float_val)) {
if (GetFloatAttribute(attr, &float_val)) {
memset(value, 0, sizeof(*value));
g_value_init(value, G_TYPE_FLOAT);
g_value_set_float(value, float_val);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment