| 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 4103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4114 | 4114 |
| 4115 void RenderFrameImpl::dispatchLoad() { | 4115 void RenderFrameImpl::dispatchLoad() { |
| 4116 Send(new FrameHostMsg_DispatchLoad(routing_id_)); | 4116 Send(new FrameHostMsg_DispatchLoad(routing_id_)); |
| 4117 } | 4117 } |
| 4118 | 4118 |
| 4119 blink::WebEffectiveConnectionType | 4119 blink::WebEffectiveConnectionType |
| 4120 RenderFrameImpl::getEffectiveConnectionType() { | 4120 RenderFrameImpl::getEffectiveConnectionType() { |
| 4121 return effective_connection_type_; | 4121 return effective_connection_type_; |
| 4122 } | 4122 } |
| 4123 | 4123 |
| 4124 void RenderFrameImpl::abortClientNavigation() { |
| 4125 Send(new FrameHostMsg_AbortNavigation(routing_id_)); |
| 4126 } |
| 4127 |
| 4124 void RenderFrameImpl::didChangeSelection(bool is_empty_selection) { | 4128 void RenderFrameImpl::didChangeSelection(bool is_empty_selection) { |
| 4125 if (!GetRenderWidget()->input_handler().handling_input_event() && | 4129 if (!GetRenderWidget()->input_handler().handling_input_event() && |
| 4126 !handling_select_range_) | 4130 !handling_select_range_) |
| 4127 return; | 4131 return; |
| 4128 | 4132 |
| 4129 if (is_empty_selection) | 4133 if (is_empty_selection) |
| 4130 selection_text_.clear(); | 4134 selection_text_.clear(); |
| 4131 | 4135 |
| 4132 // UpdateTextInputState should be called before SyncSelectionIfRequired. | 4136 // UpdateTextInputState should be called before SyncSelectionIfRequired. |
| 4133 // UpdateTextInputState may send TextInputStateChanged to notify the focus | 4137 // UpdateTextInputState may send TextInputStateChanged to notify the focus |
| (...skipping 2832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6966 policy(info.defaultPolicy), | 6970 policy(info.defaultPolicy), |
| 6967 replaces_current_history_item(info.replacesCurrentHistoryItem), | 6971 replaces_current_history_item(info.replacesCurrentHistoryItem), |
| 6968 history_navigation_in_new_child_frame( | 6972 history_navigation_in_new_child_frame( |
| 6969 info.isHistoryNavigationInNewChildFrame), | 6973 info.isHistoryNavigationInNewChildFrame), |
| 6970 client_redirect(info.isClientRedirect), | 6974 client_redirect(info.isClientRedirect), |
| 6971 cache_disabled(info.isCacheDisabled), | 6975 cache_disabled(info.isCacheDisabled), |
| 6972 form(info.form), | 6976 form(info.form), |
| 6973 source_location(info.sourceLocation) {} | 6977 source_location(info.sourceLocation) {} |
| 6974 | 6978 |
| 6975 } // namespace content | 6979 } // namespace content |
| OLD | NEW |