tests/cefclient/browser/osr_accessibility_node_win.cc
// Helper function to convert to MSAARole
Helper function to convert to MSAARole
Helper function to convert to MSAARole
int AxRoleToMSAARole(const std::string& role_string) {
  if (role_string == "alert")
    return ROLE_SYSTEM_ALERT;
  if (role_string == "application")
    return ROLE_SYSTEM_APPLICATION;
  if (role_string == "buttonDropDown")
    return ROLE_SYSTEM_BUTTONDROPDOWN;
  if (role_string == "popUpButton")
    return ROLE_SYSTEM_BUTTONMENU;
  if (role_string == "checkBox")
    return ROLE_SYSTEM_CHECKBUTTON;
  if (role_string == "comboBox")
    return ROLE_SYSTEM_COMBOBOX;
  if (role_string == "dialog")
    return ROLE_SYSTEM_DIALOG;
  if (role_string == "genericContainer")
    return ROLE_SYSTEM_GROUPING;
  if (role_string == "group")
    return ROLE_SYSTEM_GROUPING;
  if (role_string == "image")
    return ROLE_SYSTEM_GRAPHIC;
  if (role_string == "link")
    return ROLE_SYSTEM_LINK;
  if (role_string == "locationBar")
    return ROLE_SYSTEM_GROUPING;
  if (role_string == "menuBar")
    return ROLE_SYSTEM_MENUBAR;
  if (role_string == "menuItem")
    return ROLE_SYSTEM_MENUITEM;
  if (role_string == "menuListPopup")
    return ROLE_SYSTEM_MENUPOPUP;
  if (role_string == "tree")
    return ROLE_SYSTEM_OUTLINE;
  if (role_string == "treeItem")
    return ROLE_SYSTEM_OUTLINEITEM;
  if (role_string == "tab")
    return ROLE_SYSTEM_PAGETAB;
  if (role_string == "tabList")
    return ROLE_SYSTEM_PAGETABLIST;
  if (role_string == "pane")
    return ROLE_SYSTEM_PANE;
  if (role_string == "progressIndicator")
    return ROLE_SYSTEM_PROGRESSBAR;
  if (role_string == "button")
    return ROLE_SYSTEM_PUSHBUTTON;
  if (role_string == "radioButton")
    return ROLE_SYSTEM_RADIOBUTTON;
  if (role_string == "scrollBar")
    return ROLE_SYSTEM_SCROLLBAR;
  if (role_string == "splitter")
    return ROLE_SYSTEM_SEPARATOR;
  if (role_string == "slider")
    return ROLE_SYSTEM_SLIDER;
  if (role_string == "staticText")
    return ROLE_SYSTEM_STATICTEXT;
  if (role_string == "textField")
    return ROLE_SYSTEM_TEXT;
  if (role_string == "titleBar")
    return ROLE_SYSTEM_TITLEBAR;
  if (role_string == "toolbar")
    return ROLE_SYSTEM_TOOLBAR;
  if (role_string == "webView")
    return ROLE_SYSTEM_GROUPING;
  if (role_string == "window")
    return ROLE_SYSTEM_WINDOW;
  if (role_string == "client")
    return ROLE_SYSTEM_CLIENT;
  return ROLE_SYSTEM_CLIENT;
}
int AxRoleToMSAARole ( const std :: string & role_string ) { if ( role_string == " " ) return ROLE_SYSTEM_ALERT ; if ( role_string == " " ) return ROLE_SYSTEM_APPLICATION ; if ( role_string == " " ) return ROLE_SYSTEM_BUTTONDROPDOWN ; if ( role_string == " " ) return ROLE_SYSTEM_BUTTONMENU ; if ( role_string == " " ) return ROLE_SYSTEM_CHECKBUTTON ; if ( role_string == " " ) return ROLE_SYSTEM_COMBOBOX ; if ( role_string == " " ) return ROLE_SYSTEM_DIALOG ; if ( role_string == " " ) return ROLE_SYSTEM_GROUPING ; if ( role_string == " " ) return ROLE_SYSTEM_GROUPING ; if ( role_string == " " ) return ROLE_SYSTEM_GRAPHIC ; if ( role_string == " " ) return ROLE_SYSTEM_LINK ; if ( role_string == " " ) return ROLE_SYSTEM_GROUPING ; if ( role_string == " " ) return ROLE_SYSTEM_MENUBAR ; if ( role_string == " " ) return ROLE_SYSTEM_MENUITEM ; if ( role_string == " " ) return ROLE_SYSTEM_MENUPOPUP ; if ( role_string == " " ) return ROLE_SYSTEM_OUTLINE ; if ( role_string == " " ) return ROLE_SYSTEM_OUTLINEITEM ; if ( role_string == " " ) return ROLE_SYSTEM_PAGETAB ; if ( role_string == " " ) return ROLE_SYSTEM_PAGETABLIST ; if ( role_string == " " ) return ROLE_SYSTEM_PANE ; if ( role_string == " " ) return ROLE_SYSTEM_PROGRESSBAR ; if ( role_string == " " ) return ROLE_SYSTEM_PUSHBUTTON ; if ( role_string == " " ) return ROLE_SYSTEM_RADIOBUTTON ; if ( role_string == " " ) return ROLE_SYSTEM_SCROLLBAR ; if ( role_string == " " ) return ROLE_SYSTEM_SEPARATOR ; if ( role_string == " " ) return ROLE_SYSTEM_SLIDER ; if ( role_string == " " ) return ROLE_SYSTEM_STATICTEXT ; if ( role_string == " " ) return ROLE_SYSTEM_TEXT ; if ( role_string == " " ) return ROLE_SYSTEM_TITLEBAR ; if ( role_string == " " ) return ROLE_SYSTEM_TOOLBAR ; if ( role_string == " " ) return ROLE_SYSTEM_GROUPING ; if ( role_string == " " ) return ROLE_SYSTEM_WINDOW ; if ( role_string == " " ) return ROLE_SYSTEM_CLIENT ; return ROLE_SYSTEM_CLIENT ; }
Helper function to convert to MSAARole
Helper function to convert to MSAARole
// This is the default role for MSAA.