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 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2114 | 2114 |
2115 void WebContentsImpl::Unselect() { | 2115 void WebContentsImpl::Unselect() { |
2116 RenderFrameHost* focused_frame = GetFocusedFrame(); | 2116 RenderFrameHost* focused_frame = GetFocusedFrame(); |
2117 if (!focused_frame) | 2117 if (!focused_frame) |
2118 return; | 2118 return; |
2119 | 2119 |
2120 focused_frame->Send(new InputMsg_Unselect(focused_frame->GetRoutingID())); | 2120 focused_frame->Send(new InputMsg_Unselect(focused_frame->GetRoutingID())); |
2121 RecordAction(base::UserMetricsAction("Unselect")); | 2121 RecordAction(base::UserMetricsAction("Unselect")); |
2122 } | 2122 } |
2123 | 2123 |
| 2124 void WebContentsImpl::AdvanceFocusInForm(bool forward) { |
| 2125 RenderViewHost* render_view_host = GetRenderViewHost(); |
| 2126 if (!render_view_host) |
| 2127 return; |
| 2128 render_view_host->Send(new InputMsg_AdvanceFocusInForm( |
| 2129 render_view_host->GetRoutingID(), forward)); |
| 2130 } |
| 2131 |
2124 void WebContentsImpl::Replace(const base::string16& word) { | 2132 void WebContentsImpl::Replace(const base::string16& word) { |
2125 RenderFrameHost* focused_frame = GetFocusedFrame(); | 2133 RenderFrameHost* focused_frame = GetFocusedFrame(); |
2126 if (!focused_frame) | 2134 if (!focused_frame) |
2127 return; | 2135 return; |
2128 | 2136 |
2129 focused_frame->Send(new InputMsg_Replace( | 2137 focused_frame->Send(new InputMsg_Replace( |
2130 focused_frame->GetRoutingID(), word)); | 2138 focused_frame->GetRoutingID(), word)); |
2131 } | 2139 } |
2132 | 2140 |
2133 void WebContentsImpl::ReplaceMisspelling(const base::string16& word) { | 2141 void WebContentsImpl::ReplaceMisspelling(const base::string16& word) { |
(...skipping 2289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4423 node->render_manager()->ResumeResponseDeferredAtStart(); | 4431 node->render_manager()->ResumeResponseDeferredAtStart(); |
4424 } | 4432 } |
4425 | 4433 |
4426 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4434 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4427 force_disable_overscroll_content_ = force_disable; | 4435 force_disable_overscroll_content_ = force_disable; |
4428 if (view_) | 4436 if (view_) |
4429 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4437 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4430 } | 4438 } |
4431 | 4439 |
4432 } // namespace content | 4440 } // namespace content |
OLD | NEW |