Changeset 61854 in webkit


Ignore:
Timestamp:
Jun 25, 2010 5:41:45 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-06-25 Lucas De Marchi <lucas.demarchi@profusion.mobi>

Reviewed by Kenneth Rohde Christiansen.

[EFL] Use a descriptive string in FileChooser when multiple files can
be selected.
https://bugs.webkit.org/show_bug.cgi?id=40943

EFL port has no tests yet, so no new tests.

  • platform/efl/FileChooserEfl.cpp: (WebCore::FileChooser::basenameForWidth):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r61850 r61854  
     12010-06-25  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [EFL] Use a descriptive string in FileChooser when multiple files can
     6        be selected.
     7        https://bugs.webkit.org/show_bug.cgi?id=40943
     8
     9        EFL port has no tests yet, so no new tests.
     10
     11        * platform/efl/FileChooserEfl.cpp:
     12        (WebCore::FileChooser::basenameForWidth):
     13
    1142010-06-25  Nikolas Zimmermann  <nzimmermann@rim.com>
    215
  • trunk/WebCore/platform/efl/FileChooserEfl.cpp

    r55338 r61854  
    3232
    3333#include "LocalizedStrings.h"
     34#include "StringTruncator.h"
    3435
    3536namespace WebCore {
     
    4041        return String();
    4142
     43    String string;
    4244    if (m_filenames.isEmpty())
    43         return fileButtonNoFileSelectedLabel();
     45        string = fileButtonNoFileSelectedLabel();
     46    else if (m_filenames.size() == 1)
     47        string = m_filenames[0];
     48    else
     49        return StringTruncator::rightTruncate(multipleFileUploadText(m_filenames.size()), width, font, false);
     50
     51    return StringTruncator::centerTruncate(string, static_cast<float>(width), font, false);
    4452}
    4553
Note: See TracChangeset for help on using the changeset viewer.