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 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1047 RenderFrameImpl::FromRoutingID(opener_frame_routing_id); | 1047 RenderFrameImpl::FromRoutingID(opener_frame_routing_id); |
1048 if (opener_frame) { | 1048 if (opener_frame) { |
1049 if (opener_view_routing_id) | 1049 if (opener_view_routing_id) |
1050 *opener_view_routing_id = opener_frame->render_view()->GetRoutingID(); | 1050 *opener_view_routing_id = opener_frame->render_view()->GetRoutingID(); |
1051 return opener_frame->GetWebFrame(); | 1051 return opener_frame->GetWebFrame(); |
1052 } | 1052 } |
1053 | 1053 |
1054 return nullptr; | 1054 return nullptr; |
1055 } | 1055 } |
1056 | 1056 |
| 1057 blink::WebString RenderFrameImpl::overrideFlashEmbedWithHTML( |
| 1058 const WebString& url) { |
| 1059 return blink::WebString::fromUTF8(GetContentClient()->renderer()->OverrideFl
ashEmbedWithHTML(url.utf8())); |
| 1060 } |
| 1061 |
1057 // RenderFrameImpl ---------------------------------------------------------- | 1062 // RenderFrameImpl ---------------------------------------------------------- |
1058 RenderFrameImpl::RenderFrameImpl(const CreateParams& params) | 1063 RenderFrameImpl::RenderFrameImpl(const CreateParams& params) |
1059 : frame_(NULL), | 1064 : frame_(NULL), |
1060 is_main_frame_(true), | 1065 is_main_frame_(true), |
1061 in_browser_initiated_detach_(false), | 1066 in_browser_initiated_detach_(false), |
1062 in_frame_tree_(false), | 1067 in_frame_tree_(false), |
1063 render_view_(params.render_view->AsWeakPtr()), | 1068 render_view_(params.render_view->AsWeakPtr()), |
1064 routing_id_(params.routing_id), | 1069 routing_id_(params.routing_id), |
1065 proxy_routing_id_(MSG_ROUTING_NONE), | 1070 proxy_routing_id_(MSG_ROUTING_NONE), |
1066 #if defined(ENABLE_PLUGINS) | 1071 #if defined(ENABLE_PLUGINS) |
(...skipping 5260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6327 // event target. Potentially a Pepper plugin will receive the event. | 6332 // event target. Potentially a Pepper plugin will receive the event. |
6328 // In order to tell whether a plugin gets the last mouse event and which it | 6333 // In order to tell whether a plugin gets the last mouse event and which it |
6329 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6334 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6330 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6335 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6331 // |pepper_last_mouse_event_target_|. | 6336 // |pepper_last_mouse_event_target_|. |
6332 pepper_last_mouse_event_target_ = nullptr; | 6337 pepper_last_mouse_event_target_ = nullptr; |
6333 #endif | 6338 #endif |
6334 } | 6339 } |
6335 | 6340 |
6336 } // namespace content | 6341 } // namespace content |
OLD | NEW |