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

Unified Diff: content/browser/frame_host/interstitial_page_impl.cc

Issue 407493004: Revert of Revert of Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/interstitial_page_impl.cc
diff --git a/content/browser/frame_host/interstitial_page_impl.cc b/content/browser/frame_host/interstitial_page_impl.cc
index a4ea2997bf7700fc954a30fb699fe92f427b1852..1a1ed43dc658b6dad433ff43523c804bea6576e6 100644
--- a/content/browser/frame_host/interstitial_page_impl.cc
+++ b/content/browser/frame_host/interstitial_page_impl.cc
@@ -432,6 +432,13 @@
controller_->delegate()->NotifyNavigationStateChanged(INVALIDATE_TYPE_TITLE);
}
+AccessibilityMode InterstitialPageImpl::GetAccessibilityMode() const {
+ if (web_contents_)
+ return static_cast<WebContentsImpl*>(web_contents_)->GetAccessibilityMode();
+ else
+ return AccessibilityModeOff;
+}
+
RenderViewHostDelegateView* InterstitialPageImpl::GetDelegateView() {
return rvh_delegate_view_.get();
}
@@ -533,7 +540,11 @@
#if defined(OS_WIN)
gfx::NativeViewAccessible
InterstitialPageImpl::GetParentNativeViewAccessible() {
- return render_widget_host_delegate_->GetParentNativeViewAccessible();
+ if (web_contents_) {
+ WebContentsImpl* wci = static_cast<WebContentsImpl*>(web_contents_);
+ return wci->GetParentNativeViewAccessible();
+ }
+ return NULL;
}
#endif
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.h ('k') | content/browser/frame_host/render_frame_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698