| 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/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 | 1335 |
| 1336 void WebContentsImpl::ToggleFullscreenMode(bool enter_fullscreen) { | 1336 void WebContentsImpl::ToggleFullscreenMode(bool enter_fullscreen) { |
| 1337 if (delegate_) | 1337 if (delegate_) |
| 1338 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); | 1338 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); |
| 1339 } | 1339 } |
| 1340 | 1340 |
| 1341 bool WebContentsImpl::IsFullscreenForCurrentTab() const { | 1341 bool WebContentsImpl::IsFullscreenForCurrentTab() const { |
| 1342 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; | 1342 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; |
| 1343 } | 1343 } |
| 1344 | 1344 |
| 1345 void WebContentsImpl::RequestShowTopControls(bool show) { |
| 1346 if (delegate_) |
| 1347 delegate_->RequestShowTopControls(this, show); |
| 1348 } |
| 1349 |
| 1345 void WebContentsImpl::RequestToLockMouse(bool user_gesture, | 1350 void WebContentsImpl::RequestToLockMouse(bool user_gesture, |
| 1346 bool last_unlocked_by_target) { | 1351 bool last_unlocked_by_target) { |
| 1347 if (delegate_) { | 1352 if (delegate_) { |
| 1348 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); | 1353 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); |
| 1349 } else { | 1354 } else { |
| 1350 GotResponseToLockMouseRequest(false); | 1355 GotResponseToLockMouseRequest(false); |
| 1351 } | 1356 } |
| 1352 } | 1357 } |
| 1353 | 1358 |
| 1354 void WebContentsImpl::LostMouseLock() { | 1359 void WebContentsImpl::LostMouseLock() { |
| (...skipping 2155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3510 } | 3515 } |
| 3511 | 3516 |
| 3512 BrowserPluginGuestManager* | 3517 BrowserPluginGuestManager* |
| 3513 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3518 WebContentsImpl::GetBrowserPluginGuestManager() const { |
| 3514 return static_cast<BrowserPluginGuestManager*>( | 3519 return static_cast<BrowserPluginGuestManager*>( |
| 3515 GetBrowserContext()->GetUserData( | 3520 GetBrowserContext()->GetUserData( |
| 3516 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3521 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
| 3517 } | 3522 } |
| 3518 | 3523 |
| 3519 } // namespace content | 3524 } // namespace content |
| OLD | NEW |