| 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/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1479 | 1479 |
| 1480 FOR_EACH_OBSERVER(WebContentsObserver, | 1480 FOR_EACH_OBSERVER(WebContentsObserver, |
| 1481 observers_, | 1481 observers_, |
| 1482 DidToggleFullscreenModeForTab(IsFullscreenForCurrentTab())); | 1482 DidToggleFullscreenModeForTab(IsFullscreenForCurrentTab())); |
| 1483 } | 1483 } |
| 1484 | 1484 |
| 1485 bool WebContentsImpl::IsFullscreenForCurrentTab() const { | 1485 bool WebContentsImpl::IsFullscreenForCurrentTab() const { |
| 1486 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; | 1486 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; |
| 1487 } | 1487 } |
| 1488 | 1488 |
| 1489 blink::WebDisplayMode WebContentsImpl::GetDisplayMode() const { |
| 1490 return delegate_ ? delegate_->GetDisplayMode(this) |
| 1491 : blink::WebDisplayModeBrowser; |
| 1492 } |
| 1493 |
| 1489 void WebContentsImpl::RequestToLockMouse(bool user_gesture, | 1494 void WebContentsImpl::RequestToLockMouse(bool user_gesture, |
| 1490 bool last_unlocked_by_target) { | 1495 bool last_unlocked_by_target) { |
| 1491 if (delegate_) { | 1496 if (delegate_) { |
| 1492 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); | 1497 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); |
| 1493 } else { | 1498 } else { |
| 1494 GotResponseToLockMouseRequest(false); | 1499 GotResponseToLockMouseRequest(false); |
| 1495 } | 1500 } |
| 1496 } | 1501 } |
| 1497 | 1502 |
| 1498 void WebContentsImpl::LostMouseLock() { | 1503 void WebContentsImpl::LostMouseLock() { |
| (...skipping 3060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4559 node->render_manager()->ResumeResponseDeferredAtStart(); | 4564 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4560 } | 4565 } |
| 4561 | 4566 |
| 4562 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4567 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4563 force_disable_overscroll_content_ = force_disable; | 4568 force_disable_overscroll_content_ = force_disable; |
| 4564 if (view_) | 4569 if (view_) |
| 4565 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4570 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4566 } | 4571 } |
| 4567 | 4572 |
| 4568 } // namespace content | 4573 } // namespace content |
| OLD | NEW |