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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 | 1304 |
1305 void WebContentsImpl::ToggleFullscreenMode(bool enter_fullscreen) { | 1305 void WebContentsImpl::ToggleFullscreenMode(bool enter_fullscreen) { |
1306 if (delegate_) | 1306 if (delegate_) |
1307 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); | 1307 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); |
1308 } | 1308 } |
1309 | 1309 |
1310 bool WebContentsImpl::IsFullscreenForCurrentTab() const { | 1310 bool WebContentsImpl::IsFullscreenForCurrentTab() const { |
1311 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; | 1311 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; |
1312 } | 1312 } |
1313 | 1313 |
| 1314 void WebContentsImpl::DidProgrammaticallyScroll() { |
| 1315 if (delegate_) |
| 1316 delegate_->DidProgrammaticallyScroll(this); |
| 1317 } |
| 1318 |
1314 void WebContentsImpl::RequestToLockMouse(bool user_gesture, | 1319 void WebContentsImpl::RequestToLockMouse(bool user_gesture, |
1315 bool last_unlocked_by_target) { | 1320 bool last_unlocked_by_target) { |
1316 if (delegate_) { | 1321 if (delegate_) { |
1317 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); | 1322 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); |
1318 } else { | 1323 } else { |
1319 GotResponseToLockMouseRequest(false); | 1324 GotResponseToLockMouseRequest(false); |
1320 } | 1325 } |
1321 } | 1326 } |
1322 | 1327 |
1323 void WebContentsImpl::LostMouseLock() { | 1328 void WebContentsImpl::LostMouseLock() { |
(...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3467 } | 3472 } |
3468 | 3473 |
3469 BrowserPluginGuestManager* | 3474 BrowserPluginGuestManager* |
3470 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3475 WebContentsImpl::GetBrowserPluginGuestManager() const { |
3471 return static_cast<BrowserPluginGuestManager*>( | 3476 return static_cast<BrowserPluginGuestManager*>( |
3472 GetBrowserContext()->GetUserData( | 3477 GetBrowserContext()->GetUserData( |
3473 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3478 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
3474 } | 3479 } |
3475 | 3480 |
3476 } // namespace content | 3481 } // namespace content |
OLD | NEW |