Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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): this only returns the accessibility tree from the main | |
| 727 // frame and everything in the same site instance. | |
|
Charlie Reis
2015/04/06 21:56:51
We should have a bug number for supporting this wi
dmazzoni
2015/04/09 18:39:01
Done.
| |
| 728 GetMainFrame()->RequestAXTreeSnapshot(callback); | |
| 729 } | |
| 730 | |
| 725 void WebContentsImpl::ClearNavigationTransitionData() { | 731 void WebContentsImpl::ClearNavigationTransitionData() { |
| 726 FrameTreeNode* node = frame_tree_.root(); | 732 FrameTreeNode* node = frame_tree_.root(); |
| 727 node->render_manager()->ClearNavigationTransitionData(); | 733 node->render_manager()->ClearNavigationTransitionData(); |
| 728 } | 734 } |
| 729 | 735 |
| 730 WebUI* WebContentsImpl::CreateWebUI(const GURL& url) { | 736 WebUI* WebContentsImpl::CreateWebUI(const GURL& url) { |
| 731 WebUIImpl* web_ui = new WebUIImpl(this); | 737 WebUIImpl* web_ui = new WebUIImpl(this); |
| 732 WebUIController* controller = WebUIControllerFactoryRegistry::GetInstance()-> | 738 WebUIController* controller = WebUIControllerFactoryRegistry::GetInstance()-> |
| 733 CreateWebUIControllerForURL(web_ui, url); | 739 CreateWebUIControllerForURL(web_ui, url); |
| 734 if (controller) { | 740 if (controller) { |
| (...skipping 3851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4586 node->render_manager()->ResumeResponseDeferredAtStart(); | 4592 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4587 } | 4593 } |
| 4588 | 4594 |
| 4589 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4595 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4590 force_disable_overscroll_content_ = force_disable; | 4596 force_disable_overscroll_content_ = force_disable; |
| 4591 if (view_) | 4597 if (view_) |
| 4592 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4598 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4593 } | 4599 } |
| 4594 | 4600 |
| 4595 } // namespace content | 4601 } // namespace content |
| OLD | NEW |