| 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 2697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2708 break; | 2708 break; |
| 2709 case CONSOLE_MESSAGE_LEVEL_ERROR: | 2709 case CONSOLE_MESSAGE_LEVEL_ERROR: |
| 2710 target_level = blink::WebConsoleMessage::kLevelError; | 2710 target_level = blink::WebConsoleMessage::kLevelError; |
| 2711 break; | 2711 break; |
| 2712 } | 2712 } |
| 2713 | 2713 |
| 2714 blink::WebConsoleMessage wcm(target_level, WebString::FromUTF8(message)); | 2714 blink::WebConsoleMessage wcm(target_level, WebString::FromUTF8(message)); |
| 2715 frame_->AddMessageToConsole(wcm); | 2715 frame_->AddMessageToConsole(wcm); |
| 2716 } | 2716 } |
| 2717 | 2717 |
| 2718 void RenderFrameImpl::DetachDevToolsForTest() { |
| 2719 if (devtools_agent_) |
| 2720 devtools_agent_->DetachAllSessions(); |
| 2721 } |
| 2722 |
| 2718 PreviewsState RenderFrameImpl::GetPreviewsState() const { | 2723 PreviewsState RenderFrameImpl::GetPreviewsState() const { |
| 2719 return previews_state_; | 2724 return previews_state_; |
| 2720 } | 2725 } |
| 2721 | 2726 |
| 2722 bool RenderFrameImpl::IsPasting() const { | 2727 bool RenderFrameImpl::IsPasting() const { |
| 2723 return is_pasting_; | 2728 return is_pasting_; |
| 2724 } | 2729 } |
| 2725 | 2730 |
| 2726 // blink::mojom::EngagementClient implementation ------------------------------- | 2731 // blink::mojom::EngagementClient implementation ------------------------------- |
| 2727 | 2732 |
| (...skipping 4368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7096 policy(info.default_policy), | 7101 policy(info.default_policy), |
| 7097 replaces_current_history_item(info.replaces_current_history_item), | 7102 replaces_current_history_item(info.replaces_current_history_item), |
| 7098 history_navigation_in_new_child_frame( | 7103 history_navigation_in_new_child_frame( |
| 7099 info.is_history_navigation_in_new_child_frame), | 7104 info.is_history_navigation_in_new_child_frame), |
| 7100 client_redirect(info.is_client_redirect), | 7105 client_redirect(info.is_client_redirect), |
| 7101 cache_disabled(info.is_cache_disabled), | 7106 cache_disabled(info.is_cache_disabled), |
| 7102 form(info.form), | 7107 form(info.form), |
| 7103 source_location(info.source_location) {} | 7108 source_location(info.source_location) {} |
| 7104 | 7109 |
| 7105 } // namespace content | 7110 } // namespace content |
| OLD | NEW |