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 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1441 } | 1441 } |
1442 #endif | 1442 #endif |
1443 | 1443 |
1444 bool RenderViewHostImpl::IsWaitingForUnloadACK() const { | 1444 bool RenderViewHostImpl::IsWaitingForUnloadACK() const { |
1445 return rvh_state_ == STATE_WAITING_FOR_UNLOAD_ACK || | 1445 return rvh_state_ == STATE_WAITING_FOR_UNLOAD_ACK || |
1446 rvh_state_ == STATE_WAITING_FOR_CLOSE || | 1446 rvh_state_ == STATE_WAITING_FOR_CLOSE || |
1447 rvh_state_ == STATE_PENDING_SHUTDOWN || | 1447 rvh_state_ == STATE_PENDING_SHUTDOWN || |
1448 rvh_state_ == STATE_PENDING_SWAP_OUT; | 1448 rvh_state_ == STATE_PENDING_SWAP_OUT; |
1449 } | 1449 } |
1450 | 1450 |
| 1451 void RenderViewHostImpl::OnTextSurroundingSelectionResponse( |
| 1452 const base::string16& content, |
| 1453 unsigned start_offset, |
| 1454 unsigned end_offset) { |
| 1455 if (!view_) |
| 1456 return; |
| 1457 view_->OnTextSurroundingSelectionResponse(content, start_offset, end_offset); |
| 1458 } |
| 1459 |
1451 void RenderViewHostImpl::ExitFullscreen() { | 1460 void RenderViewHostImpl::ExitFullscreen() { |
1452 RejectMouseLockOrUnlockIfNecessary(); | 1461 RejectMouseLockOrUnlockIfNecessary(); |
1453 // Notify delegate_ and renderer of fullscreen state change. | 1462 // Notify delegate_ and renderer of fullscreen state change. |
1454 OnToggleFullscreen(false); | 1463 OnToggleFullscreen(false); |
1455 } | 1464 } |
1456 | 1465 |
1457 WebPreferences RenderViewHostImpl::GetWebkitPreferences() { | 1466 WebPreferences RenderViewHostImpl::GetWebkitPreferences() { |
1458 return delegate_->GetWebkitPrefs(); | 1467 return delegate_->GetWebkitPrefs(); |
1459 } | 1468 } |
1460 | 1469 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1685 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1694 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1686 | 1695 |
1687 frame_tree->ResetForMainFrameSwap(); | 1696 frame_tree->ResetForMainFrameSwap(); |
1688 } | 1697 } |
1689 | 1698 |
1690 void RenderViewHostImpl::SelectWordAroundCaret() { | 1699 void RenderViewHostImpl::SelectWordAroundCaret() { |
1691 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1700 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1692 } | 1701 } |
1693 | 1702 |
1694 } // namespace content | 1703 } // namespace content |
OLD | NEW |