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 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 pepper_last_mouse_event_target_(nullptr), | 1111 pepper_last_mouse_event_target_(nullptr), |
1112 #endif | 1112 #endif |
1113 frame_binding_(this), | 1113 frame_binding_(this), |
1114 weak_factory_(this) { | 1114 weak_factory_(this) { |
1115 // We don't have a shell::Connection at this point, so use nullptr. | 1115 // We don't have a shell::Connection at this point, so use nullptr. |
1116 // TODO(beng): We should fix this, so we can apply policy about which | 1116 // TODO(beng): We should fix this, so we can apply policy about which |
1117 // interfaces get exposed. | 1117 // interfaces get exposed. |
1118 interface_registry_.reset(new shell::InterfaceRegistry(nullptr)); | 1118 interface_registry_.reset(new shell::InterfaceRegistry(nullptr)); |
1119 shell::mojom::InterfaceProviderPtr remote_interfaces; | 1119 shell::mojom::InterfaceProviderPtr remote_interfaces; |
1120 pending_remote_interface_provider_request_ = GetProxy(&remote_interfaces); | 1120 pending_remote_interface_provider_request_ = GetProxy(&remote_interfaces); |
1121 remote_interfaces_.reset( | 1121 remote_interfaces_.reset(new shell::InterfaceProvider); |
1122 new shell::InterfaceProvider(std::move(remote_interfaces))); | 1122 remote_interfaces_->Bind(std::move(remote_interfaces)); |
1123 blink_service_registry_.reset(new BlinkServiceRegistryImpl( | 1123 blink_service_registry_.reset(new BlinkServiceRegistryImpl( |
1124 remote_interfaces_->GetWeakPtr())); | 1124 remote_interfaces_->GetWeakPtr())); |
1125 | 1125 |
1126 std::pair<RoutingIDFrameMap::iterator, bool> result = | 1126 std::pair<RoutingIDFrameMap::iterator, bool> result = |
1127 g_routing_id_frame_map.Get().insert(std::make_pair(routing_id_, this)); | 1127 g_routing_id_frame_map.Get().insert(std::make_pair(routing_id_, this)); |
1128 CHECK(result.second) << "Inserting a duplicate item."; | 1128 CHECK(result.second) << "Inserting a duplicate item."; |
1129 | 1129 |
1130 RenderThread::Get()->AddRoute(routing_id_, this); | 1130 RenderThread::Get()->AddRoute(routing_id_, this); |
1131 | 1131 |
1132 render_view_->RegisterRenderFrame(this); | 1132 render_view_->RegisterRenderFrame(this); |
(...skipping 5173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6306 // event target. Potentially a Pepper plugin will receive the event. | 6306 // event target. Potentially a Pepper plugin will receive the event. |
6307 // In order to tell whether a plugin gets the last mouse event and which it | 6307 // In order to tell whether a plugin gets the last mouse event and which it |
6308 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6308 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6309 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6309 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6310 // |pepper_last_mouse_event_target_|. | 6310 // |pepper_last_mouse_event_target_|. |
6311 pepper_last_mouse_event_target_ = nullptr; | 6311 pepper_last_mouse_event_target_ = nullptr; |
6312 #endif | 6312 #endif |
6313 } | 6313 } |
6314 | 6314 |
6315 } // namespace content | 6315 } // namespace content |
OLD | NEW |