summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/options
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 07:07:18 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 07:07:18 +0000
commit6a054ffaae82f5ac8d6b876d7c85f0d87d892e42 (patch)
tree86b4d5a0c5386f3d50742af099b5009ad1dad14d /chrome/browser/chromeos/options
parent6ca800b9b2618e6ae4b92e189a9b1ae73746e49f (diff)
downloadchromium_src-6a054ffaae82f5ac8d6b876d7c85f0d87d892e42.zip
chromium_src-6a054ffaae82f5ac8d6b876d7c85f0d87d892e42.tar.gz
chromium_src-6a054ffaae82f5ac8d6b876d7c85f0d87d892e42.tar.bz2
Improvements to accessibility extension api support for "views":
1. Handles the new wrench menu. 2. Uses NotifyAccessibilityEvent to find out when focus changes, rather than installing focus change listeners that need to be cleaned up. BUG=none TEST=Updated AccessibilityEventRouterViewsTest.TestFocusNotification Review URL: http://codereview.chromium.org/3056045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55196 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/options')
-rw-r--r--chrome/browser/chromeos/options/options_window_view.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/options/options_window_view.cc b/chrome/browser/chromeos/options/options_window_view.cc
index cce17bb..6f5fffc 100644
--- a/chrome/browser/chromeos/options/options_window_view.cc
+++ b/chrome/browser/chromeos/options/options_window_view.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/gtk/options/general_page_gtk.h"
#include "chrome/browser/pref_service.h"
#include "chrome/browser/profile.h"
+#include "chrome/browser/views/accessible_view_helper.h"
#include "chrome/browser/window_sizer.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/pref_names.h"
@@ -142,6 +143,8 @@ class OptionsWindowView : public views::View,
// The last page the user was on when they opened the Options window.
IntegerPrefMember last_selected_page_;
+ scoped_ptr<AccessibleViewHelper> accessible_view_helper_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(OptionsWindowView);
};
@@ -252,6 +255,9 @@ void OptionsWindowView::Layout() {
tabs_->SetBounds(kDialogPadding, kDialogPadding,
width() - (2 * kDialogPadding),
height() - (2 * kDialogPadding));
+ if (!accessible_view_helper_.get()) {
+ accessible_view_helper_.reset(new AccessibleViewHelper(this, profile_));
+ }
}
gfx::Size OptionsWindowView::GetPreferredSize() {