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