summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webaccessibility.h
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-24 01:39:35 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-24 01:39:35 +0000
commit1745596a683e243a50546b2b897dc687c8095265 (patch)
treebe09bdebd5e0cbddb5765483d0ea226b0cc2ee6c /webkit/glue/webaccessibility.h
parent9649be09ca7396037a689efc706ad4fafa29b04b (diff)
downloadchromium_src-1745596a683e243a50546b2b897dc687c8095265.zip
chromium_src-1745596a683e243a50546b2b897dc687c8095265.tar.gz
chromium_src-1745596a683e243a50546b2b897dc687c8095265.tar.bz2
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
Diffstat (limited to 'webkit/glue/webaccessibility.h')
-rw-r--r--webkit/glue/webaccessibility.h15
1 files changed, 9 insertions, 6 deletions
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);
};