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