OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 } | 1427 } |
1428 #endif | 1428 #endif |
1429 | 1429 |
1430 bool RenderViewHostImpl::IsWaitingForUnloadACK() const { | 1430 bool RenderViewHostImpl::IsWaitingForUnloadACK() const { |
1431 return rvh_state_ == STATE_WAITING_FOR_UNLOAD_ACK || | 1431 return rvh_state_ == STATE_WAITING_FOR_UNLOAD_ACK || |
1432 rvh_state_ == STATE_WAITING_FOR_CLOSE || | 1432 rvh_state_ == STATE_WAITING_FOR_CLOSE || |
1433 rvh_state_ == STATE_PENDING_SHUTDOWN || | 1433 rvh_state_ == STATE_PENDING_SHUTDOWN || |
1434 rvh_state_ == STATE_PENDING_SWAP_OUT; | 1434 rvh_state_ == STATE_PENDING_SWAP_OUT; |
1435 } | 1435 } |
1436 | 1436 |
| 1437 void RenderViewHostImpl::OnTextSurroundingSelectionResponse( |
| 1438 const base::string16& content, |
| 1439 size_t start_offset, |
| 1440 size_t end_offset) { |
| 1441 if (!view_) |
| 1442 return; |
| 1443 view_->OnTextSurroundingSelectionResponse(content, start_offset, end_offset); |
| 1444 } |
| 1445 |
1437 void RenderViewHostImpl::ExitFullscreen() { | 1446 void RenderViewHostImpl::ExitFullscreen() { |
1438 RejectMouseLockOrUnlockIfNecessary(); | 1447 RejectMouseLockOrUnlockIfNecessary(); |
1439 // Notify delegate_ and renderer of fullscreen state change. | 1448 // Notify delegate_ and renderer of fullscreen state change. |
1440 OnToggleFullscreen(false); | 1449 OnToggleFullscreen(false); |
1441 } | 1450 } |
1442 | 1451 |
1443 WebPreferences RenderViewHostImpl::GetWebkitPreferences() { | 1452 WebPreferences RenderViewHostImpl::GetWebkitPreferences() { |
1444 return delegate_->GetWebkitPrefs(); | 1453 return delegate_->GetWebkitPrefs(); |
1445 } | 1454 } |
1446 | 1455 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1668 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1677 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1669 | 1678 |
1670 frame_tree->ResetForMainFrameSwap(); | 1679 frame_tree->ResetForMainFrameSwap(); |
1671 } | 1680 } |
1672 | 1681 |
1673 void RenderViewHostImpl::SelectWordAroundCaret() { | 1682 void RenderViewHostImpl::SelectWordAroundCaret() { |
1674 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1683 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1675 } | 1684 } |
1676 | 1685 |
1677 } // namespace content | 1686 } // namespace content |
OLD | NEW |