Changeset 79119 in webkit
- Timestamp:
- Feb 19, 2011 6:38:11 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeListsWinCE.txt
r75383 r79119 46 46 platform/win/EditorWin.cpp 47 47 platform/win/EventLoopWin.cpp 48 platform/win/FileChooserWin.cpp 48 49 platform/win/KeyEventWin.cpp 49 50 platform/win/LanguageWin.cpp … … 65 66 platform/wince/DragDataWince.cpp 66 67 platform/wince/DragImageWince.cpp 67 platform/wince/FileChooserWince.cpp68 68 platform/wince/FileSystemWince.cpp 69 69 platform/wince/KeygenWince.cpp -
trunk/Source/WebCore/ChangeLog
r79114 r79119 1 2011-02-19 Patrick Gansterer <paroga@webkit.org> 2 3 Reviewed by Andreas Kling. 4 5 Make FileChooserWin.cpp more portable and use it on WinCE 6 https://bugs.webkit.org/show_bug.cgi?id=54803 7 8 * CMakeListsWinCE.txt: 9 * platform/win/FileChooserWin.cpp: 10 (WebCore::FileChooser::basenameForWidth): 11 * platform/wince/FileChooserWinCE.cpp: Removed. 12 1 13 2011-02-19 James Simonsen <simonjam@chromium.org> 2 14 -
trunk/Source/WebCore/platform/win/FileChooserWin.cpp
r78846 r79119 27 27 #include "FileChooser.h" 28 28 29 #include "FileSystem.h" 29 30 #include "LocalizedStrings.h" 30 31 #include "StringTruncator.h" 31 #include <shlwapi.h>32 #include <windows.h>33 32 34 33 namespace WebCore { … … 42 41 if (m_filenames.isEmpty()) 43 42 string = fileButtonNoFileSelectedLabel(); 44 else if (m_filenames.size() == 1) { 45 String tmpFilename = m_filenames[0]; 46 LPWSTR basename = PathFindFileNameW(tmpFilename.charactersWithNullTermination()); 47 string = String(basename); 48 } else 43 else if (m_filenames.size() == 1) 44 string = pathGetFileName(m_filenames[0]); 45 else 49 46 return StringTruncator::rightTruncate(String::number(m_filenames.size()) + " files", width, font); 50 47
Note: See TracChangeset
for help on using the changeset viewer.