diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-30 05:47:34 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-30 05:47:34 +0000 |
commit | 678e136687693d38e647c2795a909967a01ec014 (patch) | |
tree | a96e5b22bba08946cb01972442679d2ef727a5b3 /content/browser/accessibility/browser_accessibility_win.cc | |
parent | d38a41f48cf338a1c74d58f883fc738d60fdaeae (diff) | |
download | chromium_src-678e136687693d38e647c2795a909967a01ec014.zip chromium_src-678e136687693d38e647c2795a909967a01ec014.tar.gz chromium_src-678e136687693d38e647c2795a909967a01ec014.tar.bz2 |
RWHI should implement BrowserAccessibilityDelegate
This is just refactoring, there should be no behavior changes.
I realized that most of the functionality of
BrowserAccessibilityDelegate was implemented by
RenderWidgetHostImpl, but each RenderWidgetHostView*
was actually implementing the interface, resulting in
extra code. It's simpler to have RWHI implement it and
just call into RWHV for the few cases where the view is
involved.
This also removes the parallel mac-only delegate, since
it was duplicating most of the same functionality.
Calling OriginInScreen is a couple of extra lines of code
because it needs to convert from NSPoint & NSSize to
gfx::Rect, but in every other case it's the same or simpler
this way.
BUG=none
NOTRY=true
Review URL: https://codereview.chromium.org/246773008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/accessibility/browser_accessibility_win.cc')
-rw-r--r-- | content/browser/accessibility/browser_accessibility_win.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/content/browser/accessibility/browser_accessibility_win.cc b/content/browser/accessibility/browser_accessibility_win.cc index ac2af33..4e398c2 100644 --- a/content/browser/accessibility/browser_accessibility_win.cc +++ b/content/browser/accessibility/browser_accessibility_win.cc @@ -2819,11 +2819,6 @@ STDMETHODIMP BrowserAccessibilityWin::GetPatternProvider(PATTERNID id, << id; if (id == UIA_ValuePatternId || id == UIA_TextPatternId) { if (IsEditableText()) { - // The BrowserAccessibilityManager keeps track of instances when - // we don't want to show the on-screen keyboard. - if (!manager()->IsOSKAllowed(GetGlobalBoundsRect())) - return E_NOTIMPL; - DVLOG(1) << "Returning UIA text provider"; base::win::UIATextProvider::CreateTextProvider(true, provider); return S_OK; |