| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index ffdd08802be2a27e39d6cb1af88871f39c9a50c4..873330570098a19b109e64968448d79b28f59af4 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -173,6 +173,7 @@
|
| #include "third_party/WebKit/public/platform/URLConversion.h"
|
| #include "third_party/WebKit/public/platform/WebCachePolicy.h"
|
| #include "third_party/WebKit/public/platform/WebData.h"
|
| +#include "third_party/WebKit/public/platform/WebFocusType.h"
|
| #include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
|
| #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
|
| #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h"
|
| @@ -1644,6 +1645,7 @@ bool RenderFrameImpl::OnMessageReceived(const IPC::Message& msg) {
|
| IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties,
|
| OnSetFrameOwnerProperties)
|
| IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus)
|
| + IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocusInForm, OnAdvanceFocusInForm)
|
| IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame)
|
| IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings,
|
| OnTextTrackSettingsChanged)
|
| @@ -2271,6 +2273,12 @@ void RenderFrameImpl::OnAdvanceFocus(blink::WebFocusType type,
|
| type, source_frame->web_frame(), frame_);
|
| }
|
|
|
| +void RenderFrameImpl::OnAdvanceFocusInForm(blink::WebFocusType focus_type) {
|
| + if (render_view_->webview()->FocusedFrame() != frame_)
|
| + return;
|
| + frame_->AdvanceFocusInForm(focus_type);
|
| +}
|
| +
|
| void RenderFrameImpl::OnSetFocusedFrame() {
|
| // This uses focusDocumentView rather than setFocusedFrame so that focus/blur
|
| // events are properly dispatched on any currently focused elements.
|
|
|