| 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 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1254 // DevToolsAgent is a RenderFrameObserver, and will destruct itself | 1254 // DevToolsAgent is a RenderFrameObserver, and will destruct itself |
| 1255 // when |this| is deleted. | 1255 // when |this| is deleted. |
| 1256 devtools_agent_ = new DevToolsAgent(this); | 1256 devtools_agent_ = new DevToolsAgent(this); |
| 1257 } | 1257 } |
| 1258 | 1258 |
| 1259 RegisterMojoInterfaces(); | 1259 RegisterMojoInterfaces(); |
| 1260 | 1260 |
| 1261 // We delay calling this until we have the WebFrame so that any observer or | 1261 // We delay calling this until we have the WebFrame so that any observer or |
| 1262 // embedder can call GetWebFrame on any RenderFrame. | 1262 // embedder can call GetWebFrame on any RenderFrame. |
| 1263 GetContentClient()->renderer()->RenderFrameCreated(this); | 1263 GetContentClient()->renderer()->RenderFrameCreated(this); |
| 1264 frame_->startAgents(); |
| 1264 | 1265 |
| 1265 #if defined(OS_ANDROID) | 1266 #if defined(OS_ANDROID) |
| 1266 new AppWebMessagePortClient(this); | 1267 new AppWebMessagePortClient(this); |
| 1267 #endif | 1268 #endif |
| 1268 | 1269 |
| 1269 RenderThreadImpl* render_thread = RenderThreadImpl::current(); | 1270 RenderThreadImpl* render_thread = RenderThreadImpl::current(); |
| 1270 // render_thread may be NULL in tests. | 1271 // render_thread may be NULL in tests. |
| 1271 InputHandlerManager* input_handler_manager = | 1272 InputHandlerManager* input_handler_manager = |
| 1272 render_thread ? render_thread->input_handler_manager() : nullptr; | 1273 render_thread ? render_thread->input_handler_manager() : nullptr; |
| 1273 if (input_handler_manager) { | 1274 if (input_handler_manager) { |
| (...skipping 5418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6692 // event target. Potentially a Pepper plugin will receive the event. | 6693 // event target. Potentially a Pepper plugin will receive the event. |
| 6693 // In order to tell whether a plugin gets the last mouse event and which it | 6694 // In order to tell whether a plugin gets the last mouse event and which it |
| 6694 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6695 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6695 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6696 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6696 // |pepper_last_mouse_event_target_|. | 6697 // |pepper_last_mouse_event_target_|. |
| 6697 pepper_last_mouse_event_target_ = nullptr; | 6698 pepper_last_mouse_event_target_ = nullptr; |
| 6698 #endif | 6699 #endif |
| 6699 } | 6700 } |
| 6700 | 6701 |
| 6701 } // namespace content | 6702 } // namespace content |
| OLD | NEW |