| Index: content/renderer/render_view_impl.cc
|
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
| index f524896b2a2dc09cfcaf91744335f5becf7f6287..2a842b6d2e83db1a1c140430a1a5193afe48dfe8 100644
|
| --- a/content/renderer/render_view_impl.cc
|
| +++ b/content/renderer/render_view_impl.cc
|
| @@ -113,6 +113,7 @@
|
| #include "third_party/WebKit/public/platform/WebCString.h"
|
| #include "third_party/WebKit/public/platform/WebConnectionType.h"
|
| #include "third_party/WebKit/public/platform/WebDragData.h"
|
| +#include "third_party/WebKit/public/platform/WebFocusType.h"
|
| #include "third_party/WebKit/public/platform/WebHTTPBody.h"
|
| #include "third_party/WebKit/public/platform/WebImage.h"
|
| #include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
|
| @@ -226,6 +227,7 @@ using blink::WebDragData;
|
| using blink::WebDragOperation;
|
| using blink::WebDragOperationsMask;
|
| using blink::WebElement;
|
| +using blink::WebFocusType;
|
| using blink::WebFileChooserCompletion;
|
| using blink::WebFindOptions;
|
| using blink::WebFormControlElement;
|
| @@ -1262,6 +1264,8 @@ bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) {
|
| OnScrollFocusedEditableNodeIntoRect)
|
| IPC_MESSAGE_HANDLER(InputMsg_SetEditCommandsForNextKeyEvent,
|
| OnSetEditCommandsForNextKeyEvent)
|
| + IPC_MESSAGE_HANDLER(InputMsg_AdvanceFocusToNextInputField,
|
| + OnAdvanceFocusToNextInputField)
|
| IPC_MESSAGE_HANDLER(ViewMsg_CopyImageAt, OnCopyImageAt)
|
| IPC_MESSAGE_HANDLER(ViewMsg_SaveImageAt, OnSaveImageAt)
|
| IPC_MESSAGE_HANDLER(ViewMsg_Find, OnFind)
|
| @@ -1423,6 +1427,16 @@ void RenderViewImpl::OnSetHistoryOffsetAndLength(int history_offset,
|
| history_list_length_ = history_length;
|
| }
|
|
|
| +void RenderViewImpl::OnAdvanceFocusToNextInputField(bool forward) {
|
| + if (!webview())
|
| + return;
|
| +
|
| + WebFocusType focusType = blink::WebFocusTypeForward;
|
| + if (forward == false)
|
| + focusType = blink::WebFocusTypeBackward;
|
| + webview()->advanceFocusToNextInputField(focusType);
|
| +}
|
| +
|
| void RenderViewImpl::OnSetInitialFocus(bool reverse) {
|
| if (!webview())
|
| return;
|
|
|