diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 16:12:25 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 16:12:25 +0000 |
commit | 579d99433fe11df0377792cc747a7794c8b02a0b (patch) | |
tree | 8d6ab36997d7b2ce5de3c57aa153d15d7affd3e9 /chrome/browser/views/about_chrome_view.cc | |
parent | 4b809bc97dc7abb3de83c05df2f6b0317deb25c3 (diff) | |
download | chromium_src-579d99433fe11df0377792cc747a7794c8b02a0b.zip chromium_src-579d99433fe11df0377792cc747a7794c8b02a0b.tar.gz chromium_src-579d99433fe11df0377792cc747a7794c8b02a0b.tar.bz2 |
Add infrastructure for supporting Views to the accessibility extension api.
Only a few controls actually generate accessibility events to make sure
it works, this is mostly to get the infrastructure in place.
Note that the new files are analogous to:
chrome/browser/gtk/accessibility_event_router_gtk.cc
chrome/browser/gtk/accessibility_event_router_gtk.h
chrome/browser/gtk/accessibile_widget_helper_gtk.cc
chrome/browser/gtk/accessibile_widget_helper_gtk.h
Any design changes should be made to both sets of classes.
BUG=none
TEST=Added new unit test.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44907
Review URL: http://codereview.chromium.org/1518029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44914 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/about_chrome_view.cc')
-rw-r--r-- | chrome/browser/views/about_chrome_view.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/about_chrome_view.cc b/chrome/browser/views/about_chrome_view.cc index 4885b07..96e284d 100644 --- a/chrome/browser/views/about_chrome_view.cc +++ b/chrome/browser/views/about_chrome_view.cc @@ -13,6 +13,7 @@ #include "chrome/app/chrome_version_info.h" #include "chrome/browser/browser_list.h" #include "chrome/browser/metrics/user_metrics.h" +#include "chrome/browser/views/accessible_view_helper.h" #include "chrome/common/chrome_constants.h" #include "chrome/common/platform_util.h" #include "chrome/common/url_constants.h" @@ -408,6 +409,10 @@ void AboutChromeView::Layout() { throbber_topleft_y + 1, parent_bounds.width() - update_label_x, sz.height()); + + if (!accessible_view_helper_.get()) + accessible_view_helper_.reset( + new AccessibleViewHelper(GetParent(), profile_)); } |