| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 renderer_accessibility_ = NULL; | 1668 renderer_accessibility_ = NULL; |
| 1669 } | 1669 } |
| 1670 if (accessibility_mode_ == AccessibilityModeOff) | 1670 if (accessibility_mode_ == AccessibilityModeOff) |
| 1671 return; | 1671 return; |
| 1672 | 1672 |
| 1673 if (accessibility_mode_ & AccessibilityModeFlagFullTree) | 1673 if (accessibility_mode_ & AccessibilityModeFlagFullTree) |
| 1674 renderer_accessibility_ = new RendererAccessibility(this); | 1674 renderer_accessibility_ = new RendererAccessibility(this); |
| 1675 } | 1675 } |
| 1676 | 1676 |
| 1677 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) { | 1677 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) { |
| 1678 ui::AXTreeUpdate<AXContentNodeData> response; | 1678 AXContentTreeUpdate response; |
| 1679 RendererAccessibility::SnapshotAccessibilityTree(this, &response); | 1679 RendererAccessibility::SnapshotAccessibilityTree(this, &response); |
| 1680 Send(new AccessibilityHostMsg_SnapshotResponse( | 1680 Send(new AccessibilityHostMsg_SnapshotResponse( |
| 1681 routing_id_, callback_id, response)); | 1681 routing_id_, callback_id, response)); |
| 1682 } | 1682 } |
| 1683 | 1683 |
| 1684 void RenderFrameImpl::OnUpdateOpener(int opener_routing_id) { | 1684 void RenderFrameImpl::OnUpdateOpener(int opener_routing_id) { |
| 1685 WebFrame* opener = ResolveOpener(opener_routing_id, nullptr); | 1685 WebFrame* opener = ResolveOpener(opener_routing_id, nullptr); |
| 1686 frame_->setOpener(opener); | 1686 frame_->setOpener(opener); |
| 1687 } | 1687 } |
| 1688 | 1688 |
| (...skipping 3519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5208 mojo::ServiceProviderPtr service_provider; | 5208 mojo::ServiceProviderPtr service_provider; |
| 5209 mojo::URLRequestPtr request(mojo::URLRequest::New()); | 5209 mojo::URLRequestPtr request(mojo::URLRequest::New()); |
| 5210 request->url = mojo::String::From(url); | 5210 request->url = mojo::String::From(url); |
| 5211 mojo_shell_->ConnectToApplication(request.Pass(), GetProxy(&service_provider), | 5211 mojo_shell_->ConnectToApplication(request.Pass(), GetProxy(&service_provider), |
| 5212 nullptr, nullptr, | 5212 nullptr, nullptr, |
| 5213 base::Bind(&OnGotContentHandlerID)); | 5213 base::Bind(&OnGotContentHandlerID)); |
| 5214 return service_provider.Pass(); | 5214 return service_provider.Pass(); |
| 5215 } | 5215 } |
| 5216 | 5216 |
| 5217 } // namespace content | 5217 } // namespace content |
| OLD | NEW |