| Index: chrome/browser/renderer_host/render_view_host.cc
|
| diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
|
| index 5d65bffa2ba9352caf89629f9a6f3e5878564c3a..e4734b02bf9b694c2613feb49ef2eeb6922c03f3 100644
|
| --- a/chrome/browser/renderer_host/render_view_host.cc
|
| +++ b/chrome/browser/renderer_host/render_view_host.cc
|
| @@ -1849,8 +1849,22 @@ void RenderViewHost::NotifyRendererResponsive() {
|
| delegate_->RendererResponsive(this);
|
| }
|
|
|
| -void RenderViewHost::OnMsgFocusedNodeChanged() {
|
| +void RenderViewHost::OnMsgFocusedNodeChanged(bool is_editable_node) {
|
| delegate_->FocusedNodeChanged();
|
| +
|
| +#if defined(TOUCH_UI)
|
| + if (is_editable_node) {
|
| + // Need to summon on-screen keyboard
|
| + // TODO(bryeung): implement this
|
| +
|
| + // The currently focused element can be placed out of the view as the screen
|
| + // is now shared by the keyboard. Hence, we tell the renderer to scroll
|
| + // until the focused element comes in view.
|
| + Send(new ViewMsg_ScrollFocusedEditableNodeIntoView(routing_id()));
|
| + } else {
|
| + // TODO(bryeung): implement this. Should hide the on-screen keyboard.
|
| + }
|
| +#endif
|
| }
|
|
|
| void RenderViewHost::OnMsgFocus() {
|
|
|