| 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/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1828 base::Bind(&PermissionServiceContext::CreateService, | 1828 base::Bind(&PermissionServiceContext::CreateService, |
| 1829 base::Unretained(permission_service_context_.get()))); | 1829 base::Unretained(permission_service_context_.get()))); |
| 1830 | 1830 |
| 1831 GetServiceRegistry()->AddService<presentation::PresentationService>( | 1831 GetServiceRegistry()->AddService<presentation::PresentationService>( |
| 1832 base::Bind(&PresentationServiceImpl::CreateMojoService, | 1832 base::Bind(&PresentationServiceImpl::CreateMojoService, |
| 1833 base::Unretained(this))); | 1833 base::Unretained(this))); |
| 1834 | 1834 |
| 1835 if (!frame_mojo_shell_) | 1835 if (!frame_mojo_shell_) |
| 1836 frame_mojo_shell_.reset(new FrameMojoShell(this)); | 1836 frame_mojo_shell_.reset(new FrameMojoShell(this)); |
| 1837 | 1837 |
| 1838 GetServiceRegistry()->AddService<mojo::shell::mojom::Shell>(base::Bind( | 1838 GetServiceRegistry()->AddService<mojo::shell::mojom::Connector>(base::Bind( |
| 1839 &FrameMojoShell::BindRequest, base::Unretained(frame_mojo_shell_.get()))); | 1839 &FrameMojoShell::BindRequest, base::Unretained(frame_mojo_shell_.get()))); |
| 1840 | 1840 |
| 1841 #if defined(ENABLE_WEBVR) | 1841 #if defined(ENABLE_WEBVR) |
| 1842 const base::CommandLine& browser_command_line = | 1842 const base::CommandLine& browser_command_line = |
| 1843 *base::CommandLine::ForCurrentProcess(); | 1843 *base::CommandLine::ForCurrentProcess(); |
| 1844 | 1844 |
| 1845 if (browser_command_line.HasSwitch(switches::kEnableWebVR)) { | 1845 if (browser_command_line.HasSwitch(switches::kEnableWebVR)) { |
| 1846 GetServiceRegistry()->AddService<VRService>( | 1846 GetServiceRegistry()->AddService<VRService>( |
| 1847 base::Bind(&VRDeviceManager::BindRequest)); | 1847 base::Bind(&VRDeviceManager::BindRequest)); |
| 1848 } | 1848 } |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2599 *dst = src; | 2599 *dst = src; |
| 2600 | 2600 |
| 2601 if (src.routing_id != -1) | 2601 if (src.routing_id != -1) |
| 2602 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2602 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
| 2603 | 2603 |
| 2604 if (src.parent_routing_id != -1) | 2604 if (src.parent_routing_id != -1) |
| 2605 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2605 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
| 2606 } | 2606 } |
| 2607 | 2607 |
| 2608 } // namespace content | 2608 } // namespace content |
| OLD | NEW |