diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 21:10:08 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 21:10:08 +0000 |
commit | 578bba9eb889903735722645e56387cd1b9a87b9 (patch) | |
tree | b6ccdff95afab1930e1cbccadecf7a48e3bb8f1d /chrome/browser/renderer_host/render_view_host.h | |
parent | ae0ba2c44fb60fc3abb3f36d0747dac6472e100d (diff) | |
download | chromium_src-578bba9eb889903735722645e56387cd1b9a87b9.zip chromium_src-578bba9eb889903735722645e56387cd1b9a87b9.tar.gz chromium_src-578bba9eb889903735722645e56387cd1b9a87b9.tar.bz2 |
This patch adds Cocoa editing selectors to the RenderViewWidgetHostMac class.
This makes us a better citizen in OSX text-editing land and is a first step in getting our text entry story to work more natively on OSX.
The selectors are added at runtime to the Cocoa class and invoking them causes the appropriate WebKit core command to be invoked on the currently focused WebFrame.
As a side-effect bug 10862 is fixed.
BUG=10862
TEST=Open a new tab and type some text into an input element, change to a Hebrew keyboard layout and hit command-a, all text should be selected.
Review URL: http://codereview.chromium.org/114070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18853 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, 2 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h index be31a607..101bc2b 100644 --- a/chrome/browser/renderer_host/render_view_host.h +++ b/chrome/browser/renderer_host/render_view_host.h @@ -424,6 +424,8 @@ class RenderViewHost : public RenderWidgetHost { virtual void GotFocus(); virtual bool CanBlur() const; virtual void ForwardMouseEvent(const WebKit::WebMouseEvent& mouse_event); + virtual void ForwardEditCommand(const std::string& name, + const std::string& value); virtual gfx::Rect GetRootWindowResizerRect() const; // Creates a new RenderView with the given route id. |