summaryrefslogtreecommitdiffstats
path: root/chrome/browser/accessibility_events.h
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-30 14:14:29 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-30 14:14:29 +0000
commit414591b421922b06e50c99fd41cd6ed2033a21ad (patch)
treea87c7961fd5f834f68d1babe1d87adbe77366b62 /chrome/browser/accessibility_events.h
parente3fe59bfb0912596e8975f9c50b01683c19ee5d9 (diff)
downloadchromium_src-414591b421922b06e50c99fd41cd6ed2033a21ad.zip
chromium_src-414591b421922b06e50c99fd41cd6ed2033a21ad.tar.gz
chromium_src-414591b421922b06e50c99fd41cd6ed2033a21ad.tar.bz2
Add detailed speech descriptions for Chrome OS login screen accessibility
events. BUG=none TEST=Added new unittest: WizardAccessibilityHandlerTest Review URL: http://codereview.chromium.org/3223011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61062 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/accessibility_events.h')
-rw-r--r--chrome/browser/accessibility_events.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/chrome/browser/accessibility_events.h b/chrome/browser/accessibility_events.h
index a0ef971..4e765c2 100644
--- a/chrome/browser/accessibility_events.h
+++ b/chrome/browser/accessibility_events.h
@@ -101,6 +101,10 @@ class AccessibilityRadioButtonInfo : public AccessibilityControlInfo {
void SetChecked(bool checked) { checked_ = checked; }
+ int item_index() const { return item_index_; }
+ int item_count() const { return item_count_; }
+ bool checked() const { return checked_; }
+
private:
bool checked_;
// The 0-based index of this radio button and number of buttons in the group.
@@ -125,6 +129,8 @@ class AccessibilityCheckboxInfo : public AccessibilityControlInfo {
void SetChecked(bool checked) { checked_ = checked; }
+ bool checked() const { return checked_; }
+
private:
bool checked_;
};
@@ -151,6 +157,9 @@ class AccessibilityTabInfo : public AccessibilityControlInfo {
name_ = tab_name;
}
+ int tab_index() const { return tab_index_; }
+ int tab_count() const { return tab_count_; }
+
private:
// The 0-based index of this tab and number of tabs in the group.
int tab_index_;
@@ -181,6 +190,10 @@ class AccessibilityComboBoxInfo : public AccessibilityControlInfo {
value_ = value;
}
+ int item_index() const { return item_index_; }
+ int item_count() const { return item_count_; }
+ const std::string& value() const { return value_; }
+
private:
std::string value_;
// The 0-based index of the current item and the number of total items.
@@ -214,6 +227,11 @@ class AccessibilityTextBoxInfo : public AccessibilityControlInfo {
selection_end_ = selection_end;
}
+ const std::string& value() const { return value_; }
+ bool password() const { return password_; }
+ int selection_start() const { return selection_start_; }
+ int selection_end() const { return selection_end_; }
+
private:
std::string value_;
bool password_;
@@ -245,6 +263,10 @@ class AccessibilityListBoxInfo : public AccessibilityControlInfo {
value_ = value;
}
+ int item_index() const { return item_index_; }
+ int item_count() const { return item_count_; }
+ const std::string& value() const { return value_; }
+
private:
std::string value_;
// The 0-based index of the current item and the number of total items.
@@ -283,6 +305,10 @@ class AccessibilityMenuItemInfo : public AccessibilityControlInfo {
virtual void SerializeToDict(DictionaryValue* dict) const;
+ int item_index() const { return item_index_; }
+ int item_count() const { return item_count_; }
+ bool has_submenu() const { return has_submenu_; }
+
private:
bool has_submenu_;
// The 0-based index of the current item and the number of total items.