|
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
Total comments: 1
|
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
|
Total messages: 17 (0 generated)
|