summaryrefslogtreecommitdiffstats
path: root/chrome/browser/accessibility_events.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-08 17:50:46 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-08 17:50:46 +0000
commit02d08e07d137b394792d15b712d029455713b195 (patch)
treef1a662492bc8a3aa9b336b459cc6d07531ec0b02 /chrome/browser/accessibility_events.cc
parent2aad74f0f82e51769b6a11516d1136722aead390 (diff)
downloadchromium_src-02d08e07d137b394792d15b712d029455713b195.zip
chromium_src-02d08e07d137b394792d15b712d029455713b195.tar.gz
chromium_src-02d08e07d137b394792d15b712d029455713b195.tar.bz2
FBTF: Small nits; moving virtual methods to implementation.
BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3627002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61976 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/accessibility_events.cc')
-rw-r--r--chrome/browser/accessibility_events.cc89
1 files changed, 89 insertions, 0 deletions
diff --git a/chrome/browser/accessibility_events.cc b/chrome/browser/accessibility_events.cc
index aade4b3..af2a2e0 100644
--- a/chrome/browser/accessibility_events.cc
+++ b/chrome/browser/accessibility_events.cc
@@ -29,18 +29,43 @@ void AccessibilityControlInfo::SerializeToDict(DictionaryValue *dict) const {
dict->SetString(keys::kTypeKey, type());
}
+AccessibilityWindowInfo::AccessibilityWindowInfo(Profile* profile,
+ std::string window_name)
+ : AccessibilityControlInfo(profile, window_name) {
+}
+
const char* AccessibilityWindowInfo::type() const {
return keys::kTypeWindow;
}
+AccessibilityButtonInfo::AccessibilityButtonInfo(Profile* profile,
+ std::string button_name)
+ : AccessibilityControlInfo(profile, button_name) {
+}
+
const char* AccessibilityButtonInfo::type() const {
return keys::kTypeButton;
}
+AccessibilityLinkInfo::AccessibilityLinkInfo(Profile* profile,
+ std::string link_name)
+ : AccessibilityControlInfo(profile, link_name) { }
+
const char* AccessibilityLinkInfo::type() const {
return keys::kTypeLink;
}
+AccessibilityRadioButtonInfo::AccessibilityRadioButtonInfo(Profile* profile,
+ std::string name,
+ bool checked,
+ int item_index,
+ int item_count)
+ : AccessibilityControlInfo(profile, name),
+ checked_(checked),
+ item_index_(item_index),
+ item_count_(item_count) {
+}
+
const char* AccessibilityRadioButtonInfo::type() const {
return keys::kTypeRadioButton;
}
@@ -53,6 +78,13 @@ void AccessibilityRadioButtonInfo::SerializeToDict(
dict->SetInteger(keys::kItemCountKey, item_count_);
}
+AccessibilityCheckboxInfo::AccessibilityCheckboxInfo(Profile* profile,
+ std::string name,
+ bool checked)
+ : AccessibilityControlInfo(profile, name),
+ checked_(checked) {
+}
+
const char* AccessibilityCheckboxInfo::type() const {
return keys::kTypeCheckbox;
}
@@ -62,6 +94,15 @@ void AccessibilityCheckboxInfo::SerializeToDict(DictionaryValue *dict) const {
dict->SetBoolean(keys::kCheckedKey, checked_);
}
+AccessibilityTabInfo::AccessibilityTabInfo(Profile* profile,
+ std::string tab_name,
+ int tab_index,
+ int tab_count)
+ : AccessibilityControlInfo(profile, tab_name),
+ tab_index_(tab_index),
+ tab_count_(tab_count) {
+}
+
const char* AccessibilityTabInfo::type() const {
return keys::kTypeTab;
}
@@ -72,6 +113,17 @@ void AccessibilityTabInfo::SerializeToDict(DictionaryValue *dict) const {
dict->SetInteger(keys::kItemCountKey, tab_count_);
}
+AccessibilityComboBoxInfo::AccessibilityComboBoxInfo(Profile* profile,
+ std::string name,
+ std::string value,
+ int item_index,
+ int item_count)
+ : AccessibilityControlInfo(profile, name),
+ value_(value),
+ item_index_(item_index),
+ item_count_(item_count) {
+}
+
const char* AccessibilityComboBoxInfo::type() const {
return keys::kTypeComboBox;
}
@@ -83,6 +135,16 @@ void AccessibilityComboBoxInfo::SerializeToDict(DictionaryValue *dict) const {
dict->SetInteger(keys::kItemCountKey, item_count_);
}
+AccessibilityTextBoxInfo::AccessibilityTextBoxInfo(Profile* profile,
+ std::string name,
+ bool password)
+ : AccessibilityControlInfo(profile, name),
+ value_(""),
+ password_(password),
+ selection_start_(0),
+ selection_end_(0) {
+}
+
const char* AccessibilityTextBoxInfo::type() const {
return keys::kTypeTextBox;
}
@@ -95,6 +157,17 @@ void AccessibilityTextBoxInfo::SerializeToDict(DictionaryValue *dict) const {
dict->SetInteger(keys::kSelectionEndKey, selection_end_);
}
+AccessibilityListBoxInfo::AccessibilityListBoxInfo(Profile* profile,
+ std::string name,
+ std::string value,
+ int item_index,
+ int item_count)
+ : AccessibilityControlInfo(profile, name),
+ value_(value),
+ item_index_(item_index),
+ item_count_(item_count) {
+}
+
const char* AccessibilityListBoxInfo::type() const {
return keys::kTypeListBox;
}
@@ -106,10 +179,26 @@ void AccessibilityListBoxInfo::SerializeToDict(DictionaryValue *dict) const {
dict->SetInteger(keys::kItemCountKey, item_count_);
}
+AccessibilityMenuInfo::AccessibilityMenuInfo(Profile* profile,
+ std::string menu_name)
+ : AccessibilityControlInfo(profile, menu_name) {
+}
+
const char* AccessibilityMenuInfo::type() const {
return keys::kTypeMenu;
}
+AccessibilityMenuItemInfo::AccessibilityMenuItemInfo(Profile* profile,
+ std::string name,
+ bool has_submenu,
+ int item_index,
+ int item_count)
+ : AccessibilityControlInfo(profile, name),
+ has_submenu_(has_submenu),
+ item_index_(item_index),
+ item_count_(item_count) {
+}
+
const char* AccessibilityMenuItemInfo::type() const {
return keys::kTypeMenuItem;
}