| 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/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 if (delegate_) | 1020 if (delegate_) |
| 1021 delegate_->NavigationStateChanged(this, changed_flags); | 1021 delegate_->NavigationStateChanged(this, changed_flags); |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 base::TimeTicks WebContentsImpl::GetLastActiveTime() const { | 1024 base::TimeTicks WebContentsImpl::GetLastActiveTime() const { |
| 1025 return last_active_time_; | 1025 return last_active_time_; |
| 1026 } | 1026 } |
| 1027 | 1027 |
| 1028 bool WebContentsImpl::IsHiddenIgnoringCapturing() const { |
| 1029 return should_normally_be_visible_; |
| 1030 } |
| 1031 |
| 1028 void WebContentsImpl::WasShown() { | 1032 void WebContentsImpl::WasShown() { |
| 1029 controller_.SetActive(true); | 1033 controller_.SetActive(true); |
| 1030 | 1034 |
| 1031 for (RenderWidgetHostView* view : GetRenderWidgetHostViewsInTree()) { | 1035 for (RenderWidgetHostView* view : GetRenderWidgetHostViewsInTree()) { |
| 1032 if (view) { | 1036 if (view) { |
| 1033 view->Show(); | 1037 view->Show(); |
| 1034 #if defined(OS_MACOSX) | 1038 #if defined(OS_MACOSX) |
| 1035 view->SetActive(true); | 1039 view->SetActive(true); |
| 1036 #endif | 1040 #endif |
| 1037 } | 1041 } |
| (...skipping 3402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4440 node->render_manager()->ResumeResponseDeferredAtStart(); | 4444 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4441 } | 4445 } |
| 4442 | 4446 |
| 4443 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4447 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4444 force_disable_overscroll_content_ = force_disable; | 4448 force_disable_overscroll_content_ = force_disable; |
| 4445 if (view_) | 4449 if (view_) |
| 4446 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4450 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4447 } | 4451 } |
| 4448 | 4452 |
| 4449 } // namespace content | 4453 } // namespace content |
| OLD | NEW |