| 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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 if (delegate_) | 1052 if (delegate_) |
| 1053 delegate_->NavigationStateChanged(this, changed_flags); | 1053 delegate_->NavigationStateChanged(this, changed_flags); |
| 1054 } | 1054 } |
| 1055 | 1055 |
| 1056 base::Time WebContentsImpl::GetLastActiveTime() const { | 1056 base::Time WebContentsImpl::GetLastActiveTime() const { |
| 1057 return last_active_time_; | 1057 return last_active_time_; |
| 1058 } | 1058 } |
| 1059 | 1059 |
| 1060 void WebContentsImpl::SetLastActiveTime(base::Time last_active_time) { |
| 1061 last_active_time_ = last_active_time; |
| 1062 } |
| 1063 |
| 1060 void WebContentsImpl::WasShown() { | 1064 void WebContentsImpl::WasShown() { |
| 1061 controller_.SetActive(true); | 1065 controller_.SetActive(true); |
| 1062 | 1066 |
| 1063 for (RenderWidgetHostView* view : GetRenderWidgetHostViewsInTree()) { | 1067 for (RenderWidgetHostView* view : GetRenderWidgetHostViewsInTree()) { |
| 1064 if (view) { | 1068 if (view) { |
| 1065 view->Show(); | 1069 view->Show(); |
| 1066 #if defined(OS_MACOSX) | 1070 #if defined(OS_MACOSX) |
| 1067 view->SetActive(true); | 1071 view->SetActive(true); |
| 1068 #endif | 1072 #endif |
| 1069 } | 1073 } |
| (...skipping 3361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4431 node->render_manager()->ResumeResponseDeferredAtStart(); | 4435 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4432 } | 4436 } |
| 4433 | 4437 |
| 4434 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4438 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4435 force_disable_overscroll_content_ = force_disable; | 4439 force_disable_overscroll_content_ = force_disable; |
| 4436 if (view_) | 4440 if (view_) |
| 4437 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4441 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4438 } | 4442 } |
| 4439 | 4443 |
| 4440 } // namespace content | 4444 } // namespace content |
| OLD | NEW |