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 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 } | 1435 } |
1436 #endif | 1436 #endif |
1437 | 1437 |
1438 bool RenderViewHostImpl::IsWaitingForUnloadACK() const { | 1438 bool RenderViewHostImpl::IsWaitingForUnloadACK() const { |
1439 return rvh_state_ == STATE_WAITING_FOR_UNLOAD_ACK || | 1439 return rvh_state_ == STATE_WAITING_FOR_UNLOAD_ACK || |
1440 rvh_state_ == STATE_WAITING_FOR_CLOSE || | 1440 rvh_state_ == STATE_WAITING_FOR_CLOSE || |
1441 rvh_state_ == STATE_PENDING_SHUTDOWN || | 1441 rvh_state_ == STATE_PENDING_SHUTDOWN || |
1442 rvh_state_ == STATE_PENDING_SWAP_OUT; | 1442 rvh_state_ == STATE_PENDING_SWAP_OUT; |
1443 } | 1443 } |
1444 | 1444 |
| 1445 void RenderViewHostImpl::OnTextSurroundingSelectionResponse( |
| 1446 const base::string16& content, |
| 1447 int start_offset, |
| 1448 int end_offset) { |
| 1449 if (!view_) |
| 1450 return; |
| 1451 view_->OnTextSurroundingSelectionResponse(content, start_offset, end_offset); |
| 1452 } |
| 1453 |
1445 void RenderViewHostImpl::ExitFullscreen() { | 1454 void RenderViewHostImpl::ExitFullscreen() { |
1446 RejectMouseLockOrUnlockIfNecessary(); | 1455 RejectMouseLockOrUnlockIfNecessary(); |
1447 // Notify delegate_ and renderer of fullscreen state change. | 1456 // Notify delegate_ and renderer of fullscreen state change. |
1448 OnToggleFullscreen(false); | 1457 OnToggleFullscreen(false); |
1449 } | 1458 } |
1450 | 1459 |
1451 WebPreferences RenderViewHostImpl::GetWebkitPreferences() { | 1460 WebPreferences RenderViewHostImpl::GetWebkitPreferences() { |
1452 return delegate_->GetWebkitPrefs(); | 1461 return delegate_->GetWebkitPrefs(); |
1453 } | 1462 } |
1454 | 1463 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1676 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1685 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1677 | 1686 |
1678 frame_tree->ResetForMainFrameSwap(); | 1687 frame_tree->ResetForMainFrameSwap(); |
1679 } | 1688 } |
1680 | 1689 |
1681 void RenderViewHostImpl::SelectWordAroundCaret() { | 1690 void RenderViewHostImpl::SelectWordAroundCaret() { |
1682 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1691 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1683 } | 1692 } |
1684 | 1693 |
1685 } // namespace content | 1694 } // namespace content |
OLD | NEW |