summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webtextinput.h
diff options
context:
space:
mode:
authorpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-27 13:22:06 +0000
committerpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-27 13:22:06 +0000
commit028cfbf4d662934306716f12b7142fcbbde6b84a (patch)
tree14d3539aeb5e09dc6bae83bb799268d277deb8cc /webkit/glue/webtextinput.h
parent4b6af4f75e9ad65588f01d9e980a0cc427695d91 (diff)
downloadchromium_src-028cfbf4d662934306716f12b7142fcbbde6b84a.zip
chromium_src-028cfbf4d662934306716f12b7142fcbbde6b84a.tar.gz
chromium_src-028cfbf4d662934306716f12b7142fcbbde6b84a.tar.bz2
make reference parameters const.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1436 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webtextinput.h')
-rw-r--r--webkit/glue/webtextinput.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/glue/webtextinput.h b/webkit/glue/webtextinput.h
index 3065a17..e259a4a 100644
--- a/webkit/glue/webtextinput.h
+++ b/webkit/glue/webtextinput.h
@@ -18,13 +18,13 @@ class WebTextInput {
virtual ~WebTextInput() {}
// Inserts text to the associated frame.
- virtual void InsertText(std::string& text) = 0;
+ virtual void InsertText(const std::string& text) = 0;
// Executes the given editing command on the frame.
- virtual void DoCommand(std::string& command) = 0;
+ virtual void DoCommand(const std::string& command) = 0;
// Sets marked text region on the frame.
- virtual void SetMarkedText(std::string& text,
+ virtual void SetMarkedText(const std::string& text,
int32_t location, int32_t length) = 0;
// Clears the marked text region on the frame.
@@ -53,7 +53,7 @@ class WebTextInput {
virtual void FirstRectForCharacterRange(int32_t location,
int32_t length) = 0;
virtual void CharacterIndexForPoint(double x, double y) = 0;
- virtual void MakeAttributedString(std::string& str) = 0;
+ virtual void MakeAttributedString(const std::string& str) = 0;
private:
DISALLOW_EVIL_CONSTRUCTORS(WebTextInput);