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 3344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3355 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 3355 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
3356 const blink::WebVector<blink::WebString>& stopped_matching_selectors) { | 3356 const blink::WebVector<blink::WebString>& stopped_matching_selectors) { |
3357 for (auto& observer : observers_) | 3357 for (auto& observer : observers_) |
3358 observer.DidMatchCSS(newly_matching_selectors, stopped_matching_selectors); | 3358 observer.DidMatchCSS(newly_matching_selectors, stopped_matching_selectors); |
3359 } | 3359 } |
3360 | 3360 |
3361 void RenderFrameImpl::SetHasReceivedUserGesture() { | 3361 void RenderFrameImpl::SetHasReceivedUserGesture() { |
3362 Send(new FrameHostMsg_SetHasReceivedUserGesture(routing_id_)); | 3362 Send(new FrameHostMsg_SetHasReceivedUserGesture(routing_id_)); |
3363 } | 3363 } |
3364 | 3364 |
| 3365 void RenderFrameImpl::SetDevToolsFrameId( |
| 3366 const blink::WebString& devtools_frame_id) { |
| 3367 Send(new FrameHostMsg_SetDevToolsFrameId(routing_id_, |
| 3368 devtools_frame_id.Utf8())); |
| 3369 } |
| 3370 |
3365 bool RenderFrameImpl::ShouldReportDetailedMessageForSource( | 3371 bool RenderFrameImpl::ShouldReportDetailedMessageForSource( |
3366 const blink::WebString& source) { | 3372 const blink::WebString& source) { |
3367 return GetContentClient()->renderer()->ShouldReportDetailedMessageForSource( | 3373 return GetContentClient()->renderer()->ShouldReportDetailedMessageForSource( |
3368 source.Utf16()); | 3374 source.Utf16()); |
3369 } | 3375 } |
3370 | 3376 |
3371 void RenderFrameImpl::DidAddMessageToConsole( | 3377 void RenderFrameImpl::DidAddMessageToConsole( |
3372 const blink::WebConsoleMessage& message, | 3378 const blink::WebConsoleMessage& message, |
3373 const blink::WebString& source_name, | 3379 const blink::WebString& source_name, |
3374 unsigned source_line, | 3380 unsigned source_line, |
(...skipping 3688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7063 policy(info.default_policy), | 7069 policy(info.default_policy), |
7064 replaces_current_history_item(info.replaces_current_history_item), | 7070 replaces_current_history_item(info.replaces_current_history_item), |
7065 history_navigation_in_new_child_frame( | 7071 history_navigation_in_new_child_frame( |
7066 info.is_history_navigation_in_new_child_frame), | 7072 info.is_history_navigation_in_new_child_frame), |
7067 client_redirect(info.is_client_redirect), | 7073 client_redirect(info.is_client_redirect), |
7068 cache_disabled(info.is_cache_disabled), | 7074 cache_disabled(info.is_cache_disabled), |
7069 form(info.form), | 7075 form(info.form), |
7070 source_location(info.source_location) {} | 7076 source_location(info.source_location) {} |
7071 | 7077 |
7072 } // namespace content | 7078 } // namespace content |
OLD | NEW |