| 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/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1386 IPC::Message* reply_msg) { | 1386 IPC::Message* reply_msg) { |
| 1387 // While a JS beforeunload dialog is showing, tabs in the same process | 1387 // While a JS beforeunload dialog is showing, tabs in the same process |
| 1388 // shouldn't process input events. | 1388 // shouldn't process input events. |
| 1389 GetProcess()->SetIgnoreInputEvents(true); | 1389 GetProcess()->SetIgnoreInputEvents(true); |
| 1390 render_view_host_->GetWidget()->StopHangMonitorTimeout(); | 1390 render_view_host_->GetWidget()->StopHangMonitorTimeout(); |
| 1391 delegate_->RunBeforeUnloadConfirm(this, message, is_reload, reply_msg); | 1391 delegate_->RunBeforeUnloadConfirm(this, message, is_reload, reply_msg); |
| 1392 } | 1392 } |
| 1393 | 1393 |
| 1394 void RenderFrameHostImpl::OnTextSurroundingSelectionResponse( | 1394 void RenderFrameHostImpl::OnTextSurroundingSelectionResponse( |
| 1395 const base::string16& content, | 1395 const base::string16& content, |
| 1396 size_t start_offset, | 1396 uint32_t start_offset, |
| 1397 size_t end_offset) { | 1397 uint32_t end_offset) { |
| 1398 render_view_host_->OnTextSurroundingSelectionResponse( | 1398 render_view_host_->OnTextSurroundingSelectionResponse( |
| 1399 content, start_offset, end_offset); | 1399 content, start_offset, end_offset); |
| 1400 } | 1400 } |
| 1401 | 1401 |
| 1402 void RenderFrameHostImpl::OnDidAccessInitialDocument() { | 1402 void RenderFrameHostImpl::OnDidAccessInitialDocument() { |
| 1403 delegate_->DidAccessInitialDocument(); | 1403 delegate_->DidAccessInitialDocument(); |
| 1404 } | 1404 } |
| 1405 | 1405 |
| 1406 void RenderFrameHostImpl::OnDidChangeOpener(int32_t opener_routing_id) { | 1406 void RenderFrameHostImpl::OnDidChangeOpener(int32_t opener_routing_id) { |
| 1407 frame_tree_node_->render_manager()->DidChangeOpener(opener_routing_id, | 1407 frame_tree_node_->render_manager()->DidChangeOpener(opener_routing_id, |
| (...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2552 *dst = src; | 2552 *dst = src; |
| 2553 | 2553 |
| 2554 if (src.routing_id != -1) | 2554 if (src.routing_id != -1) |
| 2555 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2555 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
| 2556 | 2556 |
| 2557 if (src.parent_routing_id != -1) | 2557 if (src.parent_routing_id != -1) |
| 2558 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2558 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
| 2559 } | 2559 } |
| 2560 | 2560 |
| 2561 } // namespace content | 2561 } // namespace content |
| OLD | NEW |