| 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 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1189 | 1189 |
| 1190 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture, | 1190 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture, |
| 1191 bool last_unlocked_by_target) { | 1191 bool last_unlocked_by_target) { |
| 1192 delegate_->RequestToLockMouse(user_gesture, last_unlocked_by_target); | 1192 delegate_->RequestToLockMouse(user_gesture, last_unlocked_by_target); |
| 1193 } | 1193 } |
| 1194 | 1194 |
| 1195 bool RenderViewHostImpl::IsFullscreen() const { | 1195 bool RenderViewHostImpl::IsFullscreen() const { |
| 1196 return delegate_->IsFullscreenForCurrentTab(); | 1196 return delegate_->IsFullscreenForCurrentTab(); |
| 1197 } | 1197 } |
| 1198 | 1198 |
| 1199 blink::WebDisplayMode RenderViewHostImpl::GetDisplayMode() const { |
| 1200 return delegate_->GetDisplayMode(); |
| 1201 } |
| 1202 |
| 1199 void RenderViewHostImpl::OnFocus() { | 1203 void RenderViewHostImpl::OnFocus() { |
| 1200 // Note: We allow focus and blur from swapped out RenderViewHosts, even when | 1204 // Note: We allow focus and blur from swapped out RenderViewHosts, even when |
| 1201 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). | 1205 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). |
| 1202 delegate_->Activate(); | 1206 delegate_->Activate(); |
| 1203 } | 1207 } |
| 1204 | 1208 |
| 1205 void RenderViewHostImpl::OnBlur() { | 1209 void RenderViewHostImpl::OnBlur() { |
| 1206 delegate_->Deactivate(); | 1210 delegate_->Deactivate(); |
| 1207 } | 1211 } |
| 1208 | 1212 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1420 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1424 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1421 | 1425 |
| 1422 frame_tree->ResetForMainFrameSwap(); | 1426 frame_tree->ResetForMainFrameSwap(); |
| 1423 } | 1427 } |
| 1424 | 1428 |
| 1425 void RenderViewHostImpl::SelectWordAroundCaret() { | 1429 void RenderViewHostImpl::SelectWordAroundCaret() { |
| 1426 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1430 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
| 1427 } | 1431 } |
| 1428 | 1432 |
| 1429 } // namespace content | 1433 } // namespace content |
| OLD | NEW |