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 const gfx::Point& scroll_point) { |
| 1316 if (delegate_) |
| 1317 delegate_->DidProgrammaticallyScroll(this, scroll_point); |
| 1318 } |
| 1319 |
1314 void WebContentsImpl::RequestToLockMouse(bool user_gesture, | 1320 void WebContentsImpl::RequestToLockMouse(bool user_gesture, |
1315 bool last_unlocked_by_target) { | 1321 bool last_unlocked_by_target) { |
1316 if (delegate_) { | 1322 if (delegate_) { |
1317 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); | 1323 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); |
1318 } else { | 1324 } else { |
1319 GotResponseToLockMouseRequest(false); | 1325 GotResponseToLockMouseRequest(false); |
1320 } | 1326 } |
1321 } | 1327 } |
1322 | 1328 |
1323 void WebContentsImpl::LostMouseLock() { | 1329 void WebContentsImpl::LostMouseLock() { |
(...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3467 } | 3473 } |
3468 | 3474 |
3469 BrowserPluginGuestManager* | 3475 BrowserPluginGuestManager* |
3470 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3476 WebContentsImpl::GetBrowserPluginGuestManager() const { |
3471 return static_cast<BrowserPluginGuestManager*>( | 3477 return static_cast<BrowserPluginGuestManager*>( |
3472 GetBrowserContext()->GetUserData( | 3478 GetBrowserContext()->GetUserData( |
3473 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3479 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
3474 } | 3480 } |
3475 | 3481 |
3476 } // namespace content | 3482 } // namespace content |
OLD | NEW |