diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 21:50:53 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 21:50:53 +0000 |
commit | a8f914871101974a4856248630c08454b7a7d294 (patch) | |
tree | 322d2cf9c312b7ad60103c59bad660fab187e204 /webkit/glue/webtextinput.h | |
parent | b38f85b26762e22775e63618f005d6c55a29ef43 (diff) | |
download | chromium_src-a8f914871101974a4856248630c08454b7a7d294.zip chromium_src-a8f914871101974a4856248630c08454b7a7d294.tar.gz chromium_src-a8f914871101974a4856248630c08454b7a7d294.tar.bz2 |
Properly convert from UTF8 to UTF16 in WebTextInputImpl.
String util changes by darin@chromium.org.
BUG=11699
Review URL: http://codereview.chromium.org/115215
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webtextinput.h')
-rw-r--r-- | webkit/glue/webtextinput.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/glue/webtextinput.h b/webkit/glue/webtextinput.h index 60dfa7a..2e69874 100644 --- a/webkit/glue/webtextinput.h +++ b/webkit/glue/webtextinput.h @@ -7,6 +7,7 @@ #include <string> #include "base/basictypes.h" +#include "base/string16.h" class WebTextInput { public: @@ -14,13 +15,13 @@ class WebTextInput { virtual ~WebTextInput() {} // Inserts text to the associated frame. - virtual void InsertText(const std::string& text) = 0; + virtual void InsertText(const string16& text) = 0; // Executes the given editing command on the frame. - virtual void DoCommand(const std::string& command) = 0; + virtual void DoCommand(const string16& command) = 0; // Sets marked text region on the frame. - virtual void SetMarkedText(const std::string& text, + virtual void SetMarkedText(const string16& text, int32_t location, int32_t length) = 0; // Clears the marked text region on the frame. |