| 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 3026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4525 node->render_manager()->ResumeResponseDeferredAtStart(); | 4530 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4526 } | 4531 } |
| 4527 | 4532 |
| 4528 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4533 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4529 force_disable_overscroll_content_ = force_disable; | 4534 force_disable_overscroll_content_ = force_disable; |
| 4530 if (view_) | 4535 if (view_) |
| 4531 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4536 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4532 } | 4537 } |
| 4533 | 4538 |
| 4534 } // namespace content | 4539 } // namespace content |
| OLD | NEW |