diff options
author | rjkroege@google.com <rjkroege@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-27 20:45:51 +0000 |
---|---|---|
committer | rjkroege@google.com <rjkroege@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-27 20:45:51 +0000 |
commit | 9b66f34bfe2412f1cc19be22ea1e2c7972983346 (patch) | |
tree | 219db97dc4db87586f918f1b58d3ad82a2e3f1d0 /chrome/browser/renderer_host/render_view_host.h | |
parent | 9a386cce2066036f6e83fea9f071aad7ebbd5416 (diff) | |
download | chromium_src-9b66f34bfe2412f1cc19be22ea1e2c7972983346.zip chromium_src-9b66f34bfe2412f1cc19be22ea1e2c7972983346.tar.gz chromium_src-9b66f34bfe2412f1cc19be22ea1e2c7972983346.tar.bz2 |
Forward textfield focus event to the browser.
Add two messages in IPC channel: 1. The renderer needs to inform the browser if an element that can accept use input gains focus. This is useful when the browser may want to take some action against such events. For example, in case a textfield is focused, the browser may want to show an on-screen keyboard. 2. The browser needs some way to inform the renderer to scroll the currently focused element into the view frame. This is useful when, for instance, the browser resize the frame and the focused element goes out of visible frame.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3474007
Patch from Varun Jain <varunjain@chromium.org>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_view_host.h')
-rw-r--r-- | chrome/browser/renderer_host/render_view_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h index 00fd2004..50d74c5 100644 --- a/chrome/browser/renderer_host/render_view_host.h +++ b/chrome/browser/renderer_host/render_view_host.h @@ -524,7 +524,7 @@ class RenderViewHost : public RenderWidgetHost { virtual void OnUserGesture(); virtual void NotifyRendererUnresponsive(); virtual void NotifyRendererResponsive(); - virtual void OnMsgFocusedNodeChanged(); + virtual void OnMsgFocusedNodeChanged(bool is_editable_node); virtual void OnMsgFocus(); virtual void OnMsgBlur(); |