summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/android/FileChooserAndroid.cpp
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-10-02 15:55:01 -0400
committerLeon Scroggins <scroggo@google.com>2009-10-09 13:46:58 -0400
commitbf280393189a33efa29a33c0d96c84710484f2f7 (patch)
tree084219fe1caff06c871fdf567426d42d7f79dafb /WebCore/platform/android/FileChooserAndroid.cpp
parentb7460af0ad232b4bea4893febafe08895a3ef35b (diff)
downloadexternal_webkit-bf280393189a33efa29a33c0d96c84710484f2f7.zip
external_webkit-bf280393189a33efa29a33c0d96c84710484f2f7.tar.gz
external_webkit-bf280393189a33efa29a33c0d96c84710484f2f7.tar.bz2
File upload.
Webkit implementation for passing in the data for file uploads. Requires a change to frameworks/base to not break things; also requires a change to packages/apps/Browser to work. Fixes http://b/issue?id=675743
Diffstat (limited to 'WebCore/platform/android/FileChooserAndroid.cpp')
-rw-r--r--WebCore/platform/android/FileChooserAndroid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/platform/android/FileChooserAndroid.cpp b/WebCore/platform/android/FileChooserAndroid.cpp
index ec1b758..d54c809 100644
--- a/WebCore/platform/android/FileChooserAndroid.cpp
+++ b/WebCore/platform/android/FileChooserAndroid.cpp
@@ -38,7 +38,7 @@ String FileChooser::basenameForWidth(const Font& font, int width) const
// often be much longer than the provided width, this may be fast enough.
String output = m_filenames[0].copy();
while (font.width(TextRun(output.impl())) > width && output.length() > 4) {
- output = output.replace(output.length() - 4, 4, String("..."));
+ output = output.replace(0, 4, String("..."));
}
return output;
}
@@ -49,7 +49,7 @@ String FileChooser::basenameForWidth(const Font& font, int width) const
// second string is rendered on the screen when no file has been selected.
String fileButtonChooseFileLabel()
{
- return String("Uploads Disabled");
+ return String("Upload a file");
}
String fileButtonNoFileSelectedLabel()