| 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 return true; | 685 return true; |
| 686 } | 686 } |
| 687 | 687 |
| 688 void WebContentsImpl::RunFileChooser( | 688 void WebContentsImpl::RunFileChooser( |
| 689 RenderViewHost* render_view_host, | 689 RenderViewHost* render_view_host, |
| 690 const FileChooserParams& params) { | 690 const FileChooserParams& params) { |
| 691 if (delegate_) | 691 if (delegate_) |
| 692 delegate_->RunFileChooser(this, params); | 692 delegate_->RunFileChooser(this, params); |
| 693 } | 693 } |
| 694 | 694 |
| 695 scoped_ptr<BluetoothChooser> WebContentsImpl::RunBluetoothChooser( |
| 696 BluetoothChooser::Observer* observer, |
| 697 int chooser_id, |
| 698 const GURL& origin) { |
| 699 if (delegate_) |
| 700 return delegate_->RunBluetoothChooser(this, observer, chooser_id, origin); |
| 701 return nullptr; |
| 702 } |
| 703 |
| 695 NavigationControllerImpl& WebContentsImpl::GetController() { | 704 NavigationControllerImpl& WebContentsImpl::GetController() { |
| 696 return controller_; | 705 return controller_; |
| 697 } | 706 } |
| 698 | 707 |
| 699 const NavigationControllerImpl& WebContentsImpl::GetController() const { | 708 const NavigationControllerImpl& WebContentsImpl::GetController() const { |
| 700 return controller_; | 709 return controller_; |
| 701 } | 710 } |
| 702 | 711 |
| 703 BrowserContext* WebContentsImpl::GetBrowserContext() const { | 712 BrowserContext* WebContentsImpl::GetBrowserContext() const { |
| 704 return controller_.GetBrowserContext(); | 713 return controller_.GetBrowserContext(); |
| (...skipping 3905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4610 player_map->erase(it); | 4619 player_map->erase(it); |
| 4611 } | 4620 } |
| 4612 | 4621 |
| 4613 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4622 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4614 force_disable_overscroll_content_ = force_disable; | 4623 force_disable_overscroll_content_ = force_disable; |
| 4615 if (view_) | 4624 if (view_) |
| 4616 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4625 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4617 } | 4626 } |
| 4618 | 4627 |
| 4619 } // namespace content | 4628 } // namespace content |
| OLD | NEW |