| 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 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1789 AccessibilityMode WebContentsImpl::GetAccessibilityMode() const { | 1789 AccessibilityMode WebContentsImpl::GetAccessibilityMode() const { |
| 1790 return accessibility_mode_; | 1790 return accessibility_mode_; |
| 1791 } | 1791 } |
| 1792 | 1792 |
| 1793 void WebContentsImpl::AccessibilityEventReceived( | 1793 void WebContentsImpl::AccessibilityEventReceived( |
| 1794 const std::vector<AXEventNotificationDetails>& details) { | 1794 const std::vector<AXEventNotificationDetails>& details) { |
| 1795 FOR_EACH_OBSERVER( | 1795 FOR_EACH_OBSERVER( |
| 1796 WebContentsObserver, observers_, AccessibilityEventReceived(details)); | 1796 WebContentsObserver, observers_, AccessibilityEventReceived(details)); |
| 1797 } | 1797 } |
| 1798 | 1798 |
| 1799 RenderFrameHost* WebContentsImpl::GetGuestByInstanceID( |
| 1800 int browser_plugin_instance_id) { |
| 1801 BrowserPluginGuestManager* guest_manager = |
| 1802 GetBrowserContext()->GetGuestManager(); |
| 1803 WebContents* guest = guest_manager->GetGuestByInstanceID( |
| 1804 this, browser_plugin_instance_id); |
| 1805 if (!guest) |
| 1806 return NULL; |
| 1807 return guest->GetMainFrame(); |
| 1808 } |
| 1809 |
| 1799 void WebContentsImpl::OnShowValidationMessage( | 1810 void WebContentsImpl::OnShowValidationMessage( |
| 1800 const gfx::Rect& anchor_in_root_view, | 1811 const gfx::Rect& anchor_in_root_view, |
| 1801 const base::string16& main_text, | 1812 const base::string16& main_text, |
| 1802 const base::string16& sub_text) { | 1813 const base::string16& sub_text) { |
| 1803 if (delegate_) | 1814 if (delegate_) |
| 1804 delegate_->ShowValidationMessage( | 1815 delegate_->ShowValidationMessage( |
| 1805 this, anchor_in_root_view, main_text, sub_text); | 1816 this, anchor_in_root_view, main_text, sub_text); |
| 1806 } | 1817 } |
| 1807 | 1818 |
| 1808 void WebContentsImpl::OnHideValidationMessage() { | 1819 void WebContentsImpl::OnHideValidationMessage() { |
| (...skipping 2525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4334 node->render_manager()->ResumeResponseDeferredAtStart(); | 4345 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4335 } | 4346 } |
| 4336 | 4347 |
| 4337 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4348 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4338 force_disable_overscroll_content_ = force_disable; | 4349 force_disable_overscroll_content_ = force_disable; |
| 4339 if (view_) | 4350 if (view_) |
| 4340 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4351 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4341 } | 4352 } |
| 4342 | 4353 |
| 4343 } // namespace content | 4354 } // namespace content |
| OLD | NEW |