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