| 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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1271 | 1271 |
| 1272 void WebContentsImpl::ToggleFullscreenMode(bool enter_fullscreen) { | 1272 void WebContentsImpl::ToggleFullscreenMode(bool enter_fullscreen) { |
| 1273 if (delegate_) | 1273 if (delegate_) |
| 1274 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); | 1274 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); |
| 1275 } | 1275 } |
| 1276 | 1276 |
| 1277 bool WebContentsImpl::IsFullscreenForCurrentTab() const { | 1277 bool WebContentsImpl::IsFullscreenForCurrentTab() const { |
| 1278 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; | 1278 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; |
| 1279 } | 1279 } |
| 1280 | 1280 |
| 1281 void WebContentsImpl::DidProgrammaticallyScroll( |
| 1282 const gfx::Point& scroll_point) { |
| 1283 if (delegate_) |
| 1284 delegate_->DidProgrammaticallyScroll(this, scroll_point); |
| 1285 } |
| 1286 |
| 1281 void WebContentsImpl::RequestToLockMouse(bool user_gesture, | 1287 void WebContentsImpl::RequestToLockMouse(bool user_gesture, |
| 1282 bool last_unlocked_by_target) { | 1288 bool last_unlocked_by_target) { |
| 1283 if (delegate_) { | 1289 if (delegate_) { |
| 1284 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); | 1290 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); |
| 1285 } else { | 1291 } else { |
| 1286 GotResponseToLockMouseRequest(false); | 1292 GotResponseToLockMouseRequest(false); |
| 1287 } | 1293 } |
| 1288 } | 1294 } |
| 1289 | 1295 |
| 1290 void WebContentsImpl::LostMouseLock() { | 1296 void WebContentsImpl::LostMouseLock() { |
| (...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3438 } | 3444 } |
| 3439 | 3445 |
| 3440 BrowserPluginGuestManager* | 3446 BrowserPluginGuestManager* |
| 3441 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3447 WebContentsImpl::GetBrowserPluginGuestManager() const { |
| 3442 return static_cast<BrowserPluginGuestManager*>( | 3448 return static_cast<BrowserPluginGuestManager*>( |
| 3443 GetBrowserContext()->GetUserData( | 3449 GetBrowserContext()->GetUserData( |
| 3444 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3450 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
| 3445 } | 3451 } |
| 3446 | 3452 |
| 3447 } // namespace content | 3453 } // namespace content |
| OLD | NEW |