From 1745596a683e243a50546b2b897dc687c8095265 Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Wed, 24 Feb 2010 01:39:35 +0000 Subject: Landing Chris Guillory CL. See original review at: http://codereview.chromium.org/626014/show BUG=None TEST=None Review URL: http://codereview.chromium.org/657020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39828 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webaccessibility.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'webkit/glue/webaccessibility.h') diff --git a/webkit/glue/webaccessibility.h b/webkit/glue/webaccessibility.h index b1be0d1..4bfd7743 100644 --- a/webkit/glue/webaccessibility.h +++ b/webkit/glue/webaccessibility.h @@ -123,6 +123,12 @@ class WebAccessibility { STATE_UNAVAILABLE }; + enum ReturnCode { + RETURNCODE_TRUE, // MSAA S_OK + RETURNCODE_FALSE, // MSAA S_FALSE + RETURNCODE_FAIL // E_FAIL + }; + // Parameters structure to hold a union of the possible accessibility function // INPUT variables, with the unused fields always set to default value. Used // in ViewMsg_GetAccessibilityInfo, as only parameter. @@ -163,14 +169,11 @@ class WebAccessibility { // String output parameter. string16 output_string; - // Return code, either true (MSAA S_OK) or false (MSAA S_FALSE). - // Interface-specific error return codes (e.g. MSAA's E_POINTER, - // E_INVALIDARG, E_FAIL, E_NOTIMPL) must be handled on the browser side by - // input validation. - bool return_code; + // Return code of the accessibility function call. + int32 return_code; }; - static bool GetAccObjInfo(WebKit::WebAccessibilityCache* cache, + static int32 GetAccObjInfo(WebKit::WebAccessibilityCache* cache, const InParams& in_params, OutParams* out_params); }; -- cgit v1.1