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 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1469 base::Bind(&AddRenderWidgetHostViewToSet, base::Unretained(&set))); | 1469 base::Bind(&AddRenderWidgetHostViewToSet, base::Unretained(&set))); |
1470 } | 1470 } |
1471 return set; | 1471 return set; |
1472 } | 1472 } |
1473 | 1473 |
1474 void WebContentsImpl::Activate() { | 1474 void WebContentsImpl::Activate() { |
1475 if (delegate_) | 1475 if (delegate_) |
1476 delegate_->ActivateContents(this); | 1476 delegate_->ActivateContents(this); |
1477 } | 1477 } |
1478 | 1478 |
1479 void WebContentsImpl::Deactivate() { | |
1480 if (delegate_) | |
1481 delegate_->DeactivateContents(this); | |
1482 } | |
1483 | |
1484 void WebContentsImpl::LostCapture() { | 1479 void WebContentsImpl::LostCapture() { |
1485 if (delegate_) | 1480 if (delegate_) |
1486 delegate_->LostCapture(); | 1481 delegate_->LostCapture(); |
1487 } | 1482 } |
1488 | 1483 |
1489 void WebContentsImpl::RenderWidgetDeleted( | 1484 void WebContentsImpl::RenderWidgetDeleted( |
1490 RenderWidgetHostImpl* render_widget_host) { | 1485 RenderWidgetHostImpl* render_widget_host) { |
1491 if (is_being_destroyed_) { | 1486 if (is_being_destroyed_) { |
1492 // |created_widgets_| might have been destroyed. | 1487 // |created_widgets_| might have been destroyed. |
1493 return; | 1488 return; |
(...skipping 3151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4645 return NULL; | 4640 return NULL; |
4646 } | 4641 } |
4647 | 4642 |
4648 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4643 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4649 force_disable_overscroll_content_ = force_disable; | 4644 force_disable_overscroll_content_ = force_disable; |
4650 if (view_) | 4645 if (view_) |
4651 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4646 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4652 } | 4647 } |
4653 | 4648 |
4654 } // namespace content | 4649 } // namespace content |
OLD | NEW |