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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1051923003: Add a WebContentsImpl API to snapshot the accessibility tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up callbacks before end of OnRenderProcessGone Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 } 715 }
716 716
717 void WebContentsImpl::AddAccessibilityMode(AccessibilityMode mode) { 717 void WebContentsImpl::AddAccessibilityMode(AccessibilityMode mode) {
718 SetAccessibilityMode(AddAccessibilityModeTo(accessibility_mode_, mode)); 718 SetAccessibilityMode(AddAccessibilityModeTo(accessibility_mode_, mode));
719 } 719 }
720 720
721 void WebContentsImpl::RemoveAccessibilityMode(AccessibilityMode mode) { 721 void WebContentsImpl::RemoveAccessibilityMode(AccessibilityMode mode) {
722 SetAccessibilityMode(RemoveAccessibilityModeFrom(accessibility_mode_, mode)); 722 SetAccessibilityMode(RemoveAccessibilityModeFrom(accessibility_mode_, mode));
723 } 723 }
724 724
725 void WebContentsImpl::RequestAXTreeSnapshot(AXTreeSnapshotCallback callback) {
726 // TODO(dmazzoni): http://crbug.com/475608 This only returns the
727 // accessibility tree from the main frame and everything in the
728 // same site instance.
729 GetMainFrame()->RequestAXTreeSnapshot(callback);
730 }
731
725 void WebContentsImpl::ClearNavigationTransitionData() { 732 void WebContentsImpl::ClearNavigationTransitionData() {
726 FrameTreeNode* node = frame_tree_.root(); 733 FrameTreeNode* node = frame_tree_.root();
727 node->render_manager()->ClearNavigationTransitionData(); 734 node->render_manager()->ClearNavigationTransitionData();
728 } 735 }
729 736
730 WebUI* WebContentsImpl::CreateWebUI(const GURL& url) { 737 WebUI* WebContentsImpl::CreateWebUI(const GURL& url) {
731 WebUIImpl* web_ui = new WebUIImpl(this); 738 WebUIImpl* web_ui = new WebUIImpl(this);
732 WebUIController* controller = WebUIControllerFactoryRegistry::GetInstance()-> 739 WebUIController* controller = WebUIControllerFactoryRegistry::GetInstance()->
733 CreateWebUIControllerForURL(web_ui, url); 740 CreateWebUIControllerForURL(web_ui, url);
734 if (controller) { 741 if (controller) {
(...skipping 3790 matching lines...) Expand 10 before | Expand all | Expand 10 after
4525 node->render_manager()->ResumeResponseDeferredAtStart(); 4532 node->render_manager()->ResumeResponseDeferredAtStart();
4526 } 4533 }
4527 4534
4528 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4535 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4529 force_disable_overscroll_content_ = force_disable; 4536 force_disable_overscroll_content_ = force_disable;
4530 if (view_) 4537 if (view_)
4531 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4538 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4532 } 4539 }
4533 4540
4534 } // namespace content 4541 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/accessibility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698