Fixes in ColorPicker & SpliPanel related to Accessibility.
authorSyed Khaja Moinuddin <moinuddin.s@samsung.com>
Thu, 25 Apr 2013 07:21:18 +0000 (16:21 +0900)
committerSyed Khaja Moinuddin <moinuddin.s@samsung.com>
Fri, 26 Apr 2013 02:43:24 +0000 (11:43 +0900)
Signed-off-by: Syed Khaja Moinuddin <moinuddin.s@samsung.com>
Change-Id: I614c33fc293a3b3be684d711644898a9108091aa
Signed-off-by: Syed Khaja Moinuddin <moinuddin.s@samsung.com>
src/ui/controls/FUiCtrl_ColorPicker.cpp
src/ui/controls/FUiCtrl_SplitPanel.cpp

index 1a2f20d..6224c15 100644 (file)
@@ -369,6 +369,7 @@ _ColorPicker::InitializeAccessibilityElement(void)
 
                String hintText(L"Double tap and drag to adjust");
 
+               __pHueBarElement->SetName("ColorPickerColorSlider");
                __pHueBarElement->SetLabel("Hue Slider");
                __pHueBarElement->SetTrait(ACCESSIBILITY_TRAITS_NONE);
                __pHueBarElement->SetHint(hintText);
@@ -383,6 +384,7 @@ _ColorPicker::InitializeAccessibilityElement(void)
                __pSaturationBarElement = new (std::nothrow) _AccessibilityElement(true);
                SysTryReturnVoidResult(NID_UI_CTRL, __pSaturationBarElement != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
 
+               __pSaturationBarElement->SetName("ColorPickerSaturationSlider");
                __pSaturationBarElement->SetLabel("Saturation Slider");
                __pSaturationBarElement->SetTrait(ACCESSIBILITY_TRAITS_NONE);
                __pSaturationBarElement->SetHint(hintText);
@@ -397,6 +399,7 @@ _ColorPicker::InitializeAccessibilityElement(void)
                __pLuminanceBarElement = new (std::nothrow) _AccessibilityElement(true);
                SysTryReturnVoidResult(NID_UI_CTRL, __pLuminanceBarElement != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
 
+               __pLuminanceBarElement->SetName("ColorPickerBrightnessSlider");
                __pLuminanceBarElement->SetLabel("Luminance Slider");
                __pLuminanceBarElement->SetTrait(ACCESSIBILITY_TRAITS_NONE);
                __pLuminanceBarElement->SetHint(hintText);
index c3bc550..787fdef 100644 (file)
@@ -818,22 +818,23 @@ _SplitPanel::OnAttachedToMainTree(void)
        {
                if (__pDividerVisualElement)
                {
+                       __pAccessibilityElement = new (std::nothrow) _AccessibilityElement(true);
+                       SysTryReturn(NID_UI_CTRL, __pAccessibilityElement, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+
                        dividerRect = __pSplitPanelPresenter->GetDividerRectangle();
 
                        if (GetDividerStyle() == SPLIT_PANEL_DIVIDER_STYLE_FIXED)
                        {
-                               hintText = String(L"Drag scroll Fixed");
+                               hintText = String(L"double tap to open/close the split area");
+                               __pAccessibilityElement->SetTrait(L"Split view button");
                        }
                        else
                        {
-                               hintText = String(L"Drag scroll, double tap and move to adjust split area");
+                               hintText = String(L"double tap and move to adjust split area");
+                               __pAccessibilityElement->SetTrait(L"Drag scroll");
                        }
 
-                       __pAccessibilityElement = new (std::nothrow) _AccessibilityElement(true);
-                       SysTryReturn(NID_UI_CTRL, __pAccessibilityElement, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
-
-                       __pAccessibilityElement->SetBounds(_CoordinateSystemUtils::ConvertToInteger(dividerRect));
-                       __pAccessibilityElement->SetTrait(ACCESSIBILITY_TRAITS_NONE);
+                       __pAccessibilityElement->SetBounds(dividerRect);
                        __pAccessibilityElement->SetHint(hintText);
                        __pAccessibilityElement->SetLabel(L"");
                        __pAccessibilityElement->SetName(L"SplitPanelDivider");