| 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 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 | 1285 |
| 1286 void WebContentsImpl::ToggleFullscreenMode(bool enter_fullscreen) { | 1286 void WebContentsImpl::ToggleFullscreenMode(bool enter_fullscreen) { |
| 1287 if (delegate_) | 1287 if (delegate_) |
| 1288 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); | 1288 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); |
| 1289 } | 1289 } |
| 1290 | 1290 |
| 1291 bool WebContentsImpl::IsFullscreenForCurrentTab() const { | 1291 bool WebContentsImpl::IsFullscreenForCurrentTab() const { |
| 1292 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; | 1292 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; |
| 1293 } | 1293 } |
| 1294 | 1294 |
| 1295 void WebContentsImpl::DidProgrammaticallyScroll( |
| 1296 const gfx::Point& scroll_point) { |
| 1297 if (delegate_) |
| 1298 delegate_->DidProgrammaticallyScroll(this, scroll_point); |
| 1299 } |
| 1300 |
| 1295 void WebContentsImpl::RequestToLockMouse(bool user_gesture, | 1301 void WebContentsImpl::RequestToLockMouse(bool user_gesture, |
| 1296 bool last_unlocked_by_target) { | 1302 bool last_unlocked_by_target) { |
| 1297 if (delegate_) { | 1303 if (delegate_) { |
| 1298 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); | 1304 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); |
| 1299 } else { | 1305 } else { |
| 1300 GotResponseToLockMouseRequest(false); | 1306 GotResponseToLockMouseRequest(false); |
| 1301 } | 1307 } |
| 1302 } | 1308 } |
| 1303 | 1309 |
| 1304 void WebContentsImpl::LostMouseLock() { | 1310 void WebContentsImpl::LostMouseLock() { |
| (...skipping 2106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3411 } | 3417 } |
| 3412 | 3418 |
| 3413 BrowserPluginGuestManager* | 3419 BrowserPluginGuestManager* |
| 3414 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3420 WebContentsImpl::GetBrowserPluginGuestManager() const { |
| 3415 return static_cast<BrowserPluginGuestManager*>( | 3421 return static_cast<BrowserPluginGuestManager*>( |
| 3416 GetBrowserContext()->GetUserData( | 3422 GetBrowserContext()->GetUserData( |
| 3417 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3423 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
| 3418 } | 3424 } |
| 3419 | 3425 |
| 3420 } // namespace content | 3426 } // namespace content |
| OLD | NEW |