| 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 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1230 | 1230 |
| 1231 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture, | 1231 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture, |
| 1232 bool last_unlocked_by_target) { | 1232 bool last_unlocked_by_target) { |
| 1233 delegate_->RequestToLockMouse(user_gesture, last_unlocked_by_target); | 1233 delegate_->RequestToLockMouse(user_gesture, last_unlocked_by_target); |
| 1234 } | 1234 } |
| 1235 | 1235 |
| 1236 bool RenderViewHostImpl::IsFullscreen() const { | 1236 bool RenderViewHostImpl::IsFullscreen() const { |
| 1237 return delegate_->IsFullscreenForCurrentTab(); | 1237 return delegate_->IsFullscreenForCurrentTab(); |
| 1238 } | 1238 } |
| 1239 | 1239 |
| 1240 blink::WebDisplayMode RenderViewHostImpl::GetDisplayMode() const { |
| 1241 return delegate_->GetDisplayMode(); |
| 1242 } |
| 1243 |
| 1240 void RenderViewHostImpl::OnFocus() { | 1244 void RenderViewHostImpl::OnFocus() { |
| 1241 // Note: We allow focus and blur from swapped out RenderViewHosts, even when | 1245 // Note: We allow focus and blur from swapped out RenderViewHosts, even when |
| 1242 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). | 1246 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). |
| 1243 delegate_->Activate(); | 1247 delegate_->Activate(); |
| 1244 } | 1248 } |
| 1245 | 1249 |
| 1246 void RenderViewHostImpl::OnBlur() { | 1250 void RenderViewHostImpl::OnBlur() { |
| 1247 delegate_->Deactivate(); | 1251 delegate_->Deactivate(); |
| 1248 } | 1252 } |
| 1249 | 1253 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1439 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1443 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1440 | 1444 |
| 1441 frame_tree->ResetForMainFrameSwap(); | 1445 frame_tree->ResetForMainFrameSwap(); |
| 1442 } | 1446 } |
| 1443 | 1447 |
| 1444 void RenderViewHostImpl::SelectWordAroundCaret() { | 1448 void RenderViewHostImpl::SelectWordAroundCaret() { |
| 1445 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1449 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
| 1446 } | 1450 } |
| 1447 | 1451 |
| 1448 } // namespace content | 1452 } // namespace content |
| OLD | NEW |