Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Issue 246773008: RWHI should implement BrowserAccessibilityDelegate (Closed)

Created:
6 years, 8 months ago by dmazzoni
Modified:
6 years, 7 months ago
Reviewers:
jam, David Tseng
CC:
chromium-reviews, yusukes+watch_chromium.org, plundblad+watch_chromium.org, yukishiino+watch_chromium.org, aboxhall+watch_chromium.org, penghuang+watch_chromium.org, yuzo+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267097

Patch Set 1 #

Patch Set 2 : Fix Mac compile errors #

Patch Set 3 : Fix compile errors #

Patch Set 4 : Fix Mac tests #

Total comments: 1

Patch Set 5 : Rebase #

Patch Set 6 : Fix merge error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -358 lines) Patch
M content/browser/accessibility/browser_accessibility_cocoa.h View 1 2 3 3 chunks +11 lines, -7 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_cocoa.mm View 1 2 3 7 chunks +39 lines, -21 lines 0 comments Download
D content/browser/accessibility/browser_accessibility_delegate_mac.h View 1 2 3 1 chunk +0 lines, -27 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_mac.mm View 1 2 3 2 chunks +1 line, -6 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_mac_unittest.mm View 1 2 3 2 chunks +1 line, -42 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.h View 1 2 3 3 chunks +9 lines, -9 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.cc View 7 chunks +6 lines, -14 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_unittest.cc View 1 1 chunk +7 lines, -5 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 4 chunks +17 lines, -10 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 2 chunks +22 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 2 chunks +0 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 1 chunk +3 lines, -54 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 2 chunks +0 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 2 chunks +2 lines, -54 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 2 chunks +56 lines, -67 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/port/browser/render_widget_host_view_port.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
dmazzoni
6 years, 8 months ago (2014-04-24 23:41:36 UTC) #1
jam
https://codereview.chromium.org/246773008/diff/60001/content/port/browser/render_widget_host_view_port.h File content/port/browser/render_widget_host_view_port.h (right): https://codereview.chromium.org/246773008/diff/60001/content/port/browser/render_widget_host_view_port.h#newcode331 content/port/browser/render_widget_host_view_port.h:331: BrowserAccessibilityManager* manager) = 0; this is an internal content ...
6 years, 8 months ago (2014-04-25 21:09:46 UTC) #2
dmazzoni
On Fri, Apr 25, 2014 at 2:09 PM, <jam@chromium.org> wrote: > > https://codereview.chromium.org/246773008/diff/60001/ > content/port/browser/render_widget_host_view_port.h ...
6 years, 7 months ago (2014-04-28 21:52:05 UTC) #3
jam
first, apologies for the delay in replying, I missed your message. please IM me in ...
6 years, 7 months ago (2014-04-29 04:46:17 UTC) #4
dmazzoni
On Mon, Apr 28, 2014 at 9:46 PM, <jam@chromium.org> wrote: > ah, I missed that ...
6 years, 7 months ago (2014-04-29 15:03:51 UTC) #5
jam
On 2014/04/29 15:03:51, dmazzoni wrote: > On Mon, Apr 28, 2014 at 9:46 PM, <mailto:jam@chromium.org> ...
6 years, 7 months ago (2014-04-29 16:30:17 UTC) #6
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 7 months ago (2014-04-29 16:43:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/246773008/80001
6 years, 7 months ago (2014-04-29 16:44:05 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 16:54:09 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium
6 years, 7 months ago (2014-04-29 16:54:09 UTC) #10
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 7 months ago (2014-04-29 17:45:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/246773008/100001
6 years, 7 months ago (2014-04-29 17:46:39 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 23:55:50 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 23:55:51 UTC) #14
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 7 months ago (2014-04-30 05:44:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/246773008/100001
6 years, 7 months ago (2014-04-30 05:45:56 UTC) #16
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 05:47:36 UTC) #17
Message was sent while issue was closed.
Change committed as 267097

Powered by Google App Engine
This is Rietveld 408576698