Changeset 80344 in webkit
- Timestamp:
- Mar 4, 2011 5:18:23 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r80342 r80344 1 2011-03-04 Christian Dywan <christian@lanedo.com> 2 3 Reviewed by Gustavo Noronha Silva. 4 5 Enable Copy Image Address context menu item in the Gtk port 6 https://bugs.webkit.org/show_bug.cgi?id=55136 7 8 * page/ContextMenuController.cpp: 9 * platform/ContextMenuItem.h: 10 * platform/LocalizationStrategy.h: 11 * platform/LocalizedStrings.cpp: 12 * platform/LocalizedStrings.h: 13 * platform/gtk/ContextMenuItemGtk.cpp: 14 * platform/gtk/LocalizedStringsGtk.cpp: 15 1 16 2011-03-04 Pavel Feldman <pfeldman@chromium.org> 2 17 -
trunk/Source/WebCore/page/ContextMenuController.cpp
r78632 r80344 208 208 frame->editor()->copyImage(m_hitTestResult); 209 209 break; 210 #if PLATFORM(QT) 210 #if PLATFORM(QT) || PLATFORM(GTK) 211 211 case ContextMenuItemTagCopyImageUrlToClipboard: 212 212 frame->editor()->copyURL(m_hitTestResult.absoluteImageURL(), m_hitTestResult.textContent()); … … 648 648 ContextMenuItem CopyImageItem(ActionType, ContextMenuItemTagCopyImageToClipboard, 649 649 contextMenuItemTagCopyImageToClipboard()); 650 #if PLATFORM(QT) 650 #if PLATFORM(QT) || PLATFORM(GTK) 651 651 ContextMenuItem CopyImageUrlItem(ActionType, ContextMenuItemTagCopyImageUrlToClipboard, 652 652 contextMenuItemTagCopyImageUrlToClipboard()); … … 734 734 if (imageURL.isLocalFile() || m_hitTestResult.image()) 735 735 appendItem(CopyImageItem, m_contextMenu.get()); 736 #if PLATFORM(QT) 736 #if PLATFORM(QT) || PLATFORM(GTK) 737 737 appendItem(CopyImageUrlItem, m_contextMenu.get()); 738 738 #endif … … 1198 1198 case ContextMenuItemTagDownloadImageToDisk: 1199 1199 case ContextMenuItemTagCopyImageToClipboard: 1200 #if PLATFORM(QT) 1200 #if PLATFORM(QT) || PLATFORM(GTK) 1201 1201 case ContextMenuItemTagCopyImageUrlToClipboard: 1202 1202 #endif -
trunk/Source/WebCore/platform/ContextMenuItem.h
r77892 r80344 66 66 ContextMenuItemTagDownloadImageToDisk, 67 67 ContextMenuItemTagCopyImageToClipboard, 68 #if PLATFORM(QT) 68 #if PLATFORM(QT) || PLATFORM(GTK) 69 69 ContextMenuItemTagCopyImageUrlToClipboard, 70 70 #endif -
trunk/Source/WebCore/platform/LocalizationStrategy.h
r78842 r80344 57 57 virtual String contextMenuItemTagDownloadImageToDisk() = 0; 58 58 virtual String contextMenuItemTagCopyImageToClipboard() = 0; 59 #if PLATFORM(QT) 59 #if PLATFORM(QT) || PLATFORM(GTK) 60 60 virtual String contextMenuItemTagCopyImageUrlToClipboard() = 0; 61 61 #endif -
trunk/Source/WebCore/platform/LocalizedStrings.cpp
r78842 r80344 110 110 } 111 111 112 #if PLATFORM(QT) 112 #if PLATFORM(QT) || PLATFORM(GTK) 113 113 String contextMenuItemTagCopyImageUrlToClipboard() 114 114 { -
trunk/Source/WebCore/platform/LocalizedStrings.h
r80014 r80344 53 53 String contextMenuItemTagDownloadImageToDisk(); 54 54 String contextMenuItemTagCopyImageToClipboard(); 55 #if PLATFORM(QT) 55 #if PLATFORM(QT) || PLATFORM(GTK) 56 56 String contextMenuItemTagCopyImageUrlToClipboard(); 57 57 #endif -
trunk/Source/WebCore/platform/gtk/ContextMenuItemGtk.cpp
r75481 r80344 108 108 case ContextMenuItemTagToggleMediaControls: 109 109 case ContextMenuItemTagToggleMediaLoop: 110 case ContextMenuItemTagCopyImageUrlToClipboard: 110 111 // No icon for this. 111 112 return 0; -
trunk/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
r78842 r80344 115 115 { 116 116 return String::fromUTF8(_("Cop_y Image")); 117 } 118 119 String contextMenuItemTagCopyImageUrlToClipboard() 120 { 121 return String::fromUTF8(_("Copy Image _Address")); 117 122 } 118 123
Note: See TracChangeset
for help on using the changeset viewer.