| 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 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1501 | 1501 |
| 1502 FOR_EACH_OBSERVER(WebContentsObserver, | 1502 FOR_EACH_OBSERVER(WebContentsObserver, |
| 1503 observers_, | 1503 observers_, |
| 1504 DidToggleFullscreenModeForTab(IsFullscreenForCurrentTab())); | 1504 DidToggleFullscreenModeForTab(IsFullscreenForCurrentTab())); |
| 1505 } | 1505 } |
| 1506 | 1506 |
| 1507 bool WebContentsImpl::IsFullscreenForCurrentTab() const { | 1507 bool WebContentsImpl::IsFullscreenForCurrentTab() const { |
| 1508 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; | 1508 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; |
| 1509 } | 1509 } |
| 1510 | 1510 |
| 1511 blink::WebDisplayMode WebContentsImpl::GetDisplayMode() const { |
| 1512 return delegate_ ? delegate_->GetDisplayMode(this) |
| 1513 : blink::WebDisplayModeBrowser; |
| 1514 } |
| 1515 |
| 1511 void WebContentsImpl::RequestToLockMouse(bool user_gesture, | 1516 void WebContentsImpl::RequestToLockMouse(bool user_gesture, |
| 1512 bool last_unlocked_by_target) { | 1517 bool last_unlocked_by_target) { |
| 1513 if (delegate_) { | 1518 if (delegate_) { |
| 1514 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); | 1519 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target); |
| 1515 } else { | 1520 } else { |
| 1516 GotResponseToLockMouseRequest(false); | 1521 GotResponseToLockMouseRequest(false); |
| 1517 } | 1522 } |
| 1518 } | 1523 } |
| 1519 | 1524 |
| 1520 void WebContentsImpl::LostMouseLock() { | 1525 void WebContentsImpl::LostMouseLock() { |
| (...skipping 2992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4513 node->render_manager()->ResumeResponseDeferredAtStart(); | 4518 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4514 } | 4519 } |
| 4515 | 4520 |
| 4516 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4521 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4517 force_disable_overscroll_content_ = force_disable; | 4522 force_disable_overscroll_content_ = force_disable; |
| 4518 if (view_) | 4523 if (view_) |
| 4519 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4524 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4520 } | 4525 } |
| 4521 | 4526 |
| 4522 } // namespace content | 4527 } // namespace content |
| OLD | NEW |