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 3346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3357 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 3357 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
3358 const blink::WebVector<blink::WebString>& stopped_matching_selectors) { | 3358 const blink::WebVector<blink::WebString>& stopped_matching_selectors) { |
3359 for (auto& observer : observers_) | 3359 for (auto& observer : observers_) |
3360 observer.DidMatchCSS(newly_matching_selectors, stopped_matching_selectors); | 3360 observer.DidMatchCSS(newly_matching_selectors, stopped_matching_selectors); |
3361 } | 3361 } |
3362 | 3362 |
3363 void RenderFrameImpl::SetHasReceivedUserGesture() { | 3363 void RenderFrameImpl::SetHasReceivedUserGesture() { |
3364 Send(new FrameHostMsg_SetHasReceivedUserGesture(routing_id_)); | 3364 Send(new FrameHostMsg_SetHasReceivedUserGesture(routing_id_)); |
3365 } | 3365 } |
3366 | 3366 |
| 3367 void RenderFrameImpl::SetDevToolsFrameId( |
| 3368 const blink::WebString& devtools_frame_id) { |
| 3369 Send(new FrameHostMsg_SetDevToolsFrameId(routing_id_, |
| 3370 devtools_frame_id.Utf8())); |
| 3371 } |
| 3372 |
3367 bool RenderFrameImpl::ShouldReportDetailedMessageForSource( | 3373 bool RenderFrameImpl::ShouldReportDetailedMessageForSource( |
3368 const blink::WebString& source) { | 3374 const blink::WebString& source) { |
3369 return GetContentClient()->renderer()->ShouldReportDetailedMessageForSource( | 3375 return GetContentClient()->renderer()->ShouldReportDetailedMessageForSource( |
3370 source.Utf16()); | 3376 source.Utf16()); |
3371 } | 3377 } |
3372 | 3378 |
3373 void RenderFrameImpl::DidAddMessageToConsole( | 3379 void RenderFrameImpl::DidAddMessageToConsole( |
3374 const blink::WebConsoleMessage& message, | 3380 const blink::WebConsoleMessage& message, |
3375 const blink::WebString& source_name, | 3381 const blink::WebString& source_name, |
3376 unsigned source_line, | 3382 unsigned source_line, |
(...skipping 3674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7051 policy(info.default_policy), | 7057 policy(info.default_policy), |
7052 replaces_current_history_item(info.replaces_current_history_item), | 7058 replaces_current_history_item(info.replaces_current_history_item), |
7053 history_navigation_in_new_child_frame( | 7059 history_navigation_in_new_child_frame( |
7054 info.is_history_navigation_in_new_child_frame), | 7060 info.is_history_navigation_in_new_child_frame), |
7055 client_redirect(info.is_client_redirect), | 7061 client_redirect(info.is_client_redirect), |
7056 cache_disabled(info.is_cache_disabled), | 7062 cache_disabled(info.is_cache_disabled), |
7057 form(info.form), | 7063 form(info.form), |
7058 source_location(info.source_location) {} | 7064 source_location(info.source_location) {} |
7059 | 7065 |
7060 } // namespace content | 7066 } // namespace content |
OLD | NEW |