+_AccessibilityManager::IsFirstElementGainedFocus(void)
+{
+ int count = __candidateList.GetCount();
+ if(count == 0)
+ {
+ return false;
+ }
+ if(__pTargetElement == null)
+ {
+ return false;
+ }
+ _AccessibilityElement* pElement = null;
+ if(__candidateList.GetAt(0, pElement) == E_SUCCESS)
+ {
+ if(pElement == __pTargetElement)
+ {
+ return true;
+ }
+ }
+ return false;
+}\r
+bool
+_AccessibilityManager::IsLastElementGainedFocus(void)
+{
+ int count = __candidateList.GetCount();
+ if(count == 0)
+ {
+ return false;
+ }
+ if(__pTargetElement == null)
+ {
+ return false;
+ }
+ _AccessibilityElement* pElement = null;
+ if(__candidateList.GetAt(count-1, pElement) == E_SUCCESS)
+ {
+ if(pElement == __pTargetElement)
+ {
+ return true;
+ }
+ }
+ return false;
+}
+bool