1 diff --git a/Source/WebCore/page/ContextMenuController.cpp b/Source/WebCore/page/ContextMenuController.cpp
2 index 923d2ce..fb0c016 100644
3 --- a/Source/WebCore/page/ContextMenuController.cpp
4 +++ b/Source/WebCore/page/ContextMenuController.cpp
5 @@ -195,6 +195,9 @@ void ContextMenuController::contextMenuItemSelected(ContextMenuItem* item)
6 case ContextMenuItemTagCopyLinkToClipboard:
7 frame->editor()->copyURL(m_hitTestResult.absoluteLinkURL(), m_hitTestResult.textContent());
9 + case ContextMenuItemTagGotoYoutubeLink:
10 + qDebug("not impl!!");
12 case ContextMenuItemTagOpenImageInNewWindow:
13 openNewWindow(m_hitTestResult.absoluteImageURL(), frame);
15 @@ -625,6 +628,8 @@ void ContextMenuController::populate()
16 contextMenuItemTagDownloadLinkToDisk());
17 ContextMenuItem CopyLinkItem(ActionType, ContextMenuItemTagCopyLinkToClipboard,
18 contextMenuItemTagCopyLinkToClipboard());
19 + ContextMenuItem GotoYoutube(ActionType, ContextMenuItemTagGotoYoutubeLink,
20 + contextMenuItemTagGotoYoutubeLink());
21 ContextMenuItem OpenImageInNewWindowItem(ActionType, ContextMenuItemTagOpenImageInNewWindow,
22 contextMenuItemTagOpenImageInNewWindow());
23 ContextMenuItem DownloadImageItem(ActionType, ContextMenuItemTagDownloadImageToDisk,
24 @@ -1172,6 +1177,7 @@ void ContextMenuController::checkOrEnableIfNeeded(ContextMenuItem& item) const
25 case ContextMenuItemTagOpenLinkInNewWindow:
26 case ContextMenuItemTagDownloadLinkToDisk:
27 case ContextMenuItemTagCopyLinkToClipboard:
28 + case ContextMenuItemTagGotoYoutubeLink:
29 case ContextMenuItemTagOpenImageInNewWindow:
30 case ContextMenuItemTagDownloadImageToDisk:
31 case ContextMenuItemTagCopyImageToClipboard:
32 diff --git a/Source/WebCore/platform/ContextMenuItem.h b/Source/WebCore/platform/ContextMenuItem.h
33 index 46a6987..f48860a 100644
34 --- a/Source/WebCore/platform/ContextMenuItem.h
35 +++ b/Source/WebCore/platform/ContextMenuItem.h
36 @@ -161,7 +161,8 @@ namespace WebCore {
37 ContextMenuItemBaseCustomTag = 5000,
38 ContextMenuItemCustomTagNoAction = 5998,
39 ContextMenuItemLastCustomTag = 5999,
40 - ContextMenuItemBaseApplicationTag = 10000
41 + ContextMenuItemBaseApplicationTag = 10000,
42 + ContextMenuItemTagGotoYoutubeLink
45 enum ContextMenuItemType {
46 diff --git a/Source/WebCore/platform/DefaultLocalizationStrategy.cpp b/Source/WebCore/platform/DefaultLocalizationStrategy.cpp
47 index 4c11f29..28cb00e 100644
48 --- a/Source/WebCore/platform/DefaultLocalizationStrategy.cpp
49 +++ b/Source/WebCore/platform/DefaultLocalizationStrategy.cpp
50 @@ -150,6 +150,11 @@ String DefaultLocalizationStrategy::contextMenuItemTagCopyLinkToClipboard()
51 return WEB_UI_STRING("Copy Link", "Copy Link context menu item");
54 +String DefaultLocalizationStrategy::contextMenuItemTagGotoYoutubeLink()
56 + return WEB_UI_STRING("Open Youtube", "Open Youtube");
59 String DefaultLocalizationStrategy::contextMenuItemTagOpenImageInNewWindow()
61 return WEB_UI_STRING("Open Image in New Window", "Open Image in New Window context menu item");
62 diff --git a/Source/WebCore/platform/DefaultLocalizationStrategy.h b/Source/WebCore/platform/DefaultLocalizationStrategy.h
63 index 56120e0..3d65344 100644
64 --- a/Source/WebCore/platform/DefaultLocalizationStrategy.h
65 +++ b/Source/WebCore/platform/DefaultLocalizationStrategy.h
66 @@ -52,6 +52,7 @@ private:
67 virtual String contextMenuItemTagOpenLinkInNewWindow();
68 virtual String contextMenuItemTagDownloadLinkToDisk();
69 virtual String contextMenuItemTagCopyLinkToClipboard();
70 + virtual String contextMenuItemTagGotoYoutubeLink();
71 virtual String contextMenuItemTagOpenImageInNewWindow();
72 virtual String contextMenuItemTagDownloadImageToDisk();
73 virtual String contextMenuItemTagCopyImageToClipboard();
74 diff --git a/Source/WebCore/platform/LocalizationStrategy.h b/Source/WebCore/platform/LocalizationStrategy.h
75 index f883893..14b322e 100644
76 --- a/Source/WebCore/platform/LocalizationStrategy.h
77 +++ b/Source/WebCore/platform/LocalizationStrategy.h
78 @@ -53,6 +53,7 @@ public:
79 virtual String contextMenuItemTagOpenLinkInNewWindow() = 0;
80 virtual String contextMenuItemTagDownloadLinkToDisk() = 0;
81 virtual String contextMenuItemTagCopyLinkToClipboard() = 0;
82 + virtual String contextMenuItemTagGotoYoutubeLink() = 0;
83 virtual String contextMenuItemTagOpenImageInNewWindow() = 0;
84 virtual String contextMenuItemTagDownloadImageToDisk() = 0;
85 virtual String contextMenuItemTagCopyImageToClipboard() = 0;
86 diff --git a/Source/WebCore/platform/LocalizedStrings.cpp b/Source/WebCore/platform/LocalizedStrings.cpp
87 index f5ad0b7..861be70 100644
88 --- a/Source/WebCore/platform/LocalizedStrings.cpp
89 +++ b/Source/WebCore/platform/LocalizedStrings.cpp
90 @@ -94,6 +94,11 @@ String contextMenuItemTagCopyLinkToClipboard()
91 return platformStrategies()->localizationStrategy()->contextMenuItemTagCopyLinkToClipboard();
94 +String contextMenuItemTagGotoYoutubeLink()
96 + return platformStrategies()->localizationStrategy()->contextMenuItemTagGotoYoutubeLink();
99 String contextMenuItemTagOpenImageInNewWindow()
101 return platformStrategies()->localizationStrategy()->contextMenuItemTagOpenImageInNewWindow();
102 diff --git a/Source/WebCore/platform/LocalizedStrings.h b/Source/WebCore/platform/LocalizedStrings.h
103 index 777fcec..3080831 100644
104 --- a/Source/WebCore/platform/LocalizedStrings.h
105 +++ b/Source/WebCore/platform/LocalizedStrings.h
106 @@ -49,6 +49,7 @@ namespace WebCore {
107 String contextMenuItemTagOpenLinkInNewWindow();
108 String contextMenuItemTagDownloadLinkToDisk();
109 String contextMenuItemTagCopyLinkToClipboard();
110 + String contextMenuItemTagGotoYoutubeLink();
111 String contextMenuItemTagOpenImageInNewWindow();
112 String contextMenuItemTagDownloadImageToDisk();
113 String contextMenuItemTagCopyImageToClipboard();
114 diff --git a/Source/WebCore/platform/android/LocalizedStringsAndroid.cpp b/Source/WebCore/platform/android/LocalizedStringsAndroid.cpp
115 index e67e389..19f5368 100644
116 --- a/Source/WebCore/platform/android/LocalizedStringsAndroid.cpp
117 +++ b/Source/WebCore/platform/android/LocalizedStringsAndroid.cpp
118 @@ -63,6 +63,12 @@ String contextMenuItemTagCopyLinkToClipboard()
122 +String contextMenuItemTagGotoYoutubeLink()
128 String contextMenuItemTagOpenImageInNewWindow()
131 diff --git a/Source/WebCore/platform/brew/LocalizedStringsBrew.cpp b/Source/WebCore/platform/brew/LocalizedStringsBrew.cpp
132 index ba5d4a9..4abe957 100644
133 --- a/Source/WebCore/platform/brew/LocalizedStringsBrew.cpp
134 +++ b/Source/WebCore/platform/brew/LocalizedStringsBrew.cpp
135 @@ -81,9 +81,14 @@ String contextMenuItemTagCopyLinkToClipboard()
136 return "Copy link to clipboard";
139 -String contextMenuItemTagOpenImageInNewWindow()
140 +String contextMenuItemTagCopyLinkToClipboard()
142 + return "Copy link to clipboard";
145 +String contextMenuItemTagGotoYoutubeLink()
147 - return "Open image in new window";
148 + return "Open Youtube";
151 String contextMenuItemTagDownloadImageToDisk()
152 diff --git a/Source/WebCore/platform/efl/LocalizedStringsEfl.cpp b/Source/WebCore/platform/efl/LocalizedStringsEfl.cpp
153 index 36a9f01..bbca0fd 100644
154 --- a/Source/WebCore/platform/efl/LocalizedStringsEfl.cpp
155 +++ b/Source/WebCore/platform/efl/LocalizedStringsEfl.cpp
156 @@ -88,6 +88,11 @@ String contextMenuItemTagCopyLinkToClipboard()
157 return String::fromUTF8("Copy Link Location");
160 +String contextMenuItemTagGotoYoutubeLink()
162 + return String::fromUTF8("Open Youtube");
165 String contextMenuItemTagOpenImageInNewWindow()
167 return String::fromUTF8("Open Image in New Window");
168 diff --git a/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp b/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
169 index 13c46fc..ed8fdf1 100644
170 --- a/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
171 +++ b/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
172 @@ -101,6 +101,11 @@ String contextMenuItemTagCopyLinkToClipboard()
173 return String::fromUTF8(_("Copy Link Loc_ation"));
176 +String contextMenuItemTagGotoYoutubeLink()
178 + return String::fromUTF8(_("Open Youtube"));
181 String contextMenuItemTagOpenImageInNewWindow()
183 return String::fromUTF8(_("Open _Image in New Window"));
184 diff --git a/Source/WebCore/platform/haiku/LocalizedStringsHaiku.cpp b/Source/WebCore/platform/haiku/LocalizedStringsHaiku.cpp
185 index c1f3641..9fa3904 100644
186 --- a/Source/WebCore/platform/haiku/LocalizedStringsHaiku.cpp
187 +++ b/Source/WebCore/platform/haiku/LocalizedStringsHaiku.cpp
188 @@ -88,6 +88,11 @@ String contextMenuItemTagCopyLinkToClipboard()
189 return "Copy link to clipboard";
192 +String contextMenuItemTagGotoYoutubeLink()
194 + return "Open Youtube";
197 String contextMenuItemTagOpenImageInNewWindow()
199 return "Open image in new window";
200 diff --git a/Source/WebCore/platform/wx/LocalizedStringsWx.cpp b/Source/WebCore/platform/wx/LocalizedStringsWx.cpp
201 index 8ec791e..8e1dea8 100644
202 --- a/Source/WebCore/platform/wx/LocalizedStringsWx.cpp
203 +++ b/Source/WebCore/platform/wx/LocalizedStringsWx.cpp
204 @@ -87,6 +87,11 @@ String contextMenuItemTagCopyLinkToClipboard()
205 return String("Copy Link to Clipboard");
208 +String contextMenuItemTagGotoYoutubeLink()
210 + return String("Open Youtube");
213 String contextMenuItemTagOpenImageInNewWindow()
215 return String("Open Image in New Window");
216 diff --git a/Source/WebKit/chromium/src/LocalizedStrings.cpp b/Source/WebKit/chromium/src/LocalizedStrings.cpp
217 index 35e03c4..6dbbfa4 100644
218 --- a/Source/WebKit/chromium/src/LocalizedStrings.cpp
219 +++ b/Source/WebKit/chromium/src/LocalizedStrings.cpp
220 @@ -242,6 +242,7 @@ String imageTitle(const String& filename, const IntSize& size)
221 String contextMenuItemTagOpenLinkInNewWindow() { return String(); }
222 String contextMenuItemTagDownloadLinkToDisk() { return String(); }
223 String contextMenuItemTagCopyLinkToClipboard() { return String(); }
224 +String contextMenuItemTagGotoYoutubeLink() { return String(); }
225 String contextMenuItemTagOpenImageInNewWindow() { return String(); }
226 String contextMenuItemTagDownloadImageToDisk() { return String(); }
227 String contextMenuItemTagCopyImageToClipboard() { return String(); }
228 diff --git a/Source/WebKit/qt/Api/qwebpage.cpp b/Source/WebKit/qt/Api/qwebpage.cpp
229 index b3efe0f..8e0e09c 100644
230 --- a/Source/WebKit/qt/Api/qwebpage.cpp
231 +++ b/Source/WebKit/qt/Api/qwebpage.cpp
232 @@ -247,7 +247,8 @@ static const char* editorCommandWebActions[] =
234 0, // CopyImageUrlToClipboard,
236 - 0 // WebActionCount
237 + 0, // WebActionCount
238 + 0 // GotoYoutubeLink
241 // Lookup the appropriate editor command to use for WebAction \a action
242 @@ -436,6 +437,7 @@ static QWebPage::WebAction webActionForContextMenuAction(WebCore::ContextMenuAct
243 case WebCore::ContextMenuItemTagOpenLinkInNewWindow: return QWebPage::OpenLinkInNewWindow;
244 case WebCore::ContextMenuItemTagDownloadLinkToDisk: return QWebPage::DownloadLinkToDisk;
245 case WebCore::ContextMenuItemTagCopyLinkToClipboard: return QWebPage::CopyLinkToClipboard;
246 + case WebCore::ContextMenuItemTagGotoYoutubeLink: return QWebPage::GotoYoutubeLink;
247 case WebCore::ContextMenuItemTagOpenImageInNewWindow: return QWebPage::OpenImageInNewWindow;
248 case WebCore::ContextMenuItemTagDownloadImageToDisk: return QWebPage::DownloadImageToDisk;
249 case WebCore::ContextMenuItemTagCopyImageToClipboard: return QWebPage::CopyImageToClipboard;
250 @@ -2335,6 +2337,7 @@ static void collectChildFrames(QWebFrame* frame, QList<QWebFrame*>& list)
254 +#include "qscreen_qws.h"
255 void QWebPage::triggerAction(WebAction action, bool)
257 WebCore::Frame *frame = d->page->focusController()->focusedOrMainFrame();
258 @@ -2373,6 +2376,19 @@ void QWebPage::triggerAction(WebAction action, bool)
259 editor->copyURL(d->hitTestResult.linkUrl(), d->hitTestResult.linkText());
262 + case GotoYoutubeLink: {
263 + char tmp[BUFF_SIZE] = {0};
264 + String url_string = KURL(d->hitTestResult.linkUrl()).string();
265 + UChar* url_wide_string = url_string.characters();
266 + for(int i=0 ; i<url_string.length() ; i++)
267 + tmp[i] = (url_wide_string[i]&0x00FF);
268 + int rc = Singleton<CVu>::instance().sendMessage(tmp);
270 + if(strncmp(tmp, "ok$", 3) != 0)
271 + if(strlen(tmp) > 4)
272 + qDebug("[%s]", &tmp[4]);
275 case OpenImageInNewWindow:
276 openNewWindow(d->hitTestResult.imageUrl(), frame);
278 @@ -2767,6 +2783,9 @@ QAction *QWebPage::action(WebAction action) const
279 case CopyLinkToClipboard:
280 text = contextMenuItemTagCopyLinkToClipboard();
282 + case GotoYoutubeLink:
283 + text = contextMenuItemTagGotoYoutubeLink();
286 case OpenImageInNewWindow:
287 text = contextMenuItemTagOpenImageInNewWindow();
288 diff --git a/Source/WebKit/qt/Api/qwebpage.h b/Source/WebKit/qt/Api/qwebpage.h
289 index f1f481b..502edc1 100644
290 --- a/Source/WebKit/qt/Api/qwebpage.h
291 +++ b/Source/WebKit/qt/Api/qwebpage.h
292 @@ -180,7 +180,8 @@ public:
294 CopyImageUrlToClipboard,
302 diff --git a/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.cpp b/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.cpp
303 index 182fe38..c1d8a4e 100644
304 --- a/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.cpp
305 +++ b/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.cpp
306 @@ -197,6 +197,11 @@ String WebPlatformStrategies::contextMenuItemTagCopyLinkToClipboard()
307 return QCoreApplication::translate("QWebPage", "Copy Link", "Copy Link context menu item");
310 +String WebPlatformStrategies::contextMenuItemTagGotoYoutubeLink()
312 + return QCoreApplication::translate("QWebPage", "Open Youtube", "Open Youtube context menu item");
315 String WebPlatformStrategies::contextMenuItemTagOpenImageInNewWindow()
317 return QCoreApplication::translate("QWebPage", "Open Image", "Open Image in New Window context menu item");
318 diff --git a/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.h b/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.h
319 index b74af39..125406a 100644
320 --- a/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.h
321 +++ b/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.h
322 @@ -69,6 +69,7 @@ private:
323 virtual WTF::String contextMenuItemTagOpenLinkInNewWindow();
324 virtual WTF::String contextMenuItemTagDownloadLinkToDisk();
325 virtual WTF::String contextMenuItemTagCopyLinkToClipboard();
326 + virtual WTF::String contextMenuItemTagGotoYoutubeLink();
327 virtual WTF::String contextMenuItemTagOpenImageInNewWindow();
328 virtual WTF::String contextMenuItemTagDownloadImageToDisk();
329 virtual WTF::String contextMenuItemTagCopyImageToClipboard();
330 diff --git a/Source/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp b/Source/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp
331 index 455da71..3de4d34 100644
332 --- a/Source/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp
333 +++ b/Source/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp
334 @@ -164,6 +164,11 @@ String PlatformStrategiesWinCE::contextMenuItemTagCopyLinkToClipboard()
335 return UI_STRING("Copy Link", "Copy Link context menu item");
338 +String PlatformStrategiesWinCE::contextMenuItemTagGotoYoutubeLink()
340 + return UI_STRING("Open Youtube", "Open Youtube context menu item");
343 String PlatformStrategiesWinCE::contextMenuItemTagOpenImageInNewWindow()
345 return UI_STRING("Open Image in New Window", "Open Image in New Window context menu item");
346 diff --git a/Source/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.h b/Source/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.h
347 index 6ed49ae..4587ec3 100644
348 --- a/Source/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.h
349 +++ b/Source/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.h
350 @@ -63,6 +63,7 @@ private:
351 virtual WTF::String contextMenuItemTagOpenLinkInNewWindow();
352 virtual WTF::String contextMenuItemTagDownloadLinkToDisk();
353 virtual WTF::String contextMenuItemTagCopyLinkToClipboard();
354 + virtual WTF::String contextMenuItemTagGotoYoutubeLink();
355 virtual WTF::String contextMenuItemTagOpenImageInNewWindow();
356 virtual WTF::String contextMenuItemTagDownloadImageToDisk();
357 virtual WTF::String contextMenuItemTagCopyImageToClipboard();
358 diff --git a/Source/WebKit2/Shared/API/c/WKContextMenuItemTypes.h b/Source/WebKit2/Shared/API/c/WKContextMenuItemTypes.h
359 index a3536d9..3150519 100644
360 --- a/Source/WebKit2/Shared/API/c/WKContextMenuItemTypes.h
361 +++ b/Source/WebKit2/Shared/API/c/WKContextMenuItemTypes.h
362 @@ -113,6 +113,7 @@ enum {
363 kWKContextMenuItemTagEnterVideoFullscreen,
364 kWKContextMenuItemTagMediaPlayPause,
365 kWKContextMenuItemTagMediaMute,
366 + kWKContextMenuItemTagGotoYoutubeLink,
367 kWKContextMenuItemBaseApplicationTag = 10000
369 typedef uint32_t WKContextMenuItemTag;
370 diff --git a/Source/WebKit2/Shared/API/c/WKSharedAPICast.h b/Source/WebKit2/Shared/API/c/WKSharedAPICast.h
371 index ac3b420..295df13 100644
372 --- a/Source/WebKit2/Shared/API/c/WKSharedAPICast.h
373 +++ b/Source/WebKit2/Shared/API/c/WKSharedAPICast.h
374 @@ -300,6 +300,8 @@ inline WKContextMenuItemTag toAPI(WebCore::ContextMenuAction action)
375 return kWKContextMenuItemTagDownloadLinkToDisk;
376 case WebCore::ContextMenuItemTagCopyLinkToClipboard:
377 return kWKContextMenuItemTagCopyLinkToClipboard;
378 + case WebCore::ContextMenuItemTagGotoYoutubeLink:
379 + return kWKContextMenuItemTagGotoYoutubeLink;
380 case WebCore::ContextMenuItemTagOpenImageInNewWindow:
381 return kWKContextMenuItemTagOpenImageInNewWindow;
382 case WebCore::ContextMenuItemTagDownloadImageToDisk:
383 @@ -478,6 +480,8 @@ inline WebCore::ContextMenuAction toImpl(WKContextMenuItemTag tag)
384 return WebCore::ContextMenuItemTagDownloadLinkToDisk;
385 case kWKContextMenuItemTagCopyLinkToClipboard:
386 return WebCore::ContextMenuItemTagCopyLinkToClipboard;
387 + case kWKContextMenuItemTagGotoYoutubeLink:
388 + return WebCore::ContextMenuItemTagGotoYoutubeLink;
389 case kWKContextMenuItemTagOpenImageInNewWindow:
390 return WebCore::ContextMenuItemTagOpenImageInNewWindow;
391 case kWKContextMenuItemTagDownloadImageToDisk:
392 diff --git a/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp b/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
393 index 85a7c48..a508d37 100644
394 --- a/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
395 +++ b/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
396 @@ -72,6 +72,8 @@ static WebCore::ContextMenuAction contextMenuActionForWebAction(QWKPage::WebActi
397 return WebCore::ContextMenuItemTagOpenLinkInNewWindow;
398 case QWKPage::CopyLinkToClipboard:
399 return WebCore::ContextMenuItemTagCopyLinkToClipboard;
400 + case QWKPage::GotoYoutubeLink:
401 + return WebCore::ContextMenuItemTagGotoYoutubeLink;
402 case QWKPage::OpenImageInNewWindow:
403 return WebCore::ContextMenuItemTagOpenImageInNewWindow;
405 @@ -754,6 +756,9 @@ QAction* QWKPage::action(WebAction action) const
406 case CopyLinkToClipboard:
407 text = contextMenuItemTagCopyLinkToClipboard();
409 + case GotoYoutubeLink:
410 + text = contextMenuItemTagGotoYoutubeLink();
412 case OpenImageInNewWindow:
413 text = contextMenuItemTagOpenImageInNewWindow();
415 diff --git a/Source/WebKit2/UIProcess/API/qt/qwkpage.h b/Source/WebKit2/UIProcess/API/qt/qwkpage.h
416 index 5dcfad2..ec024cf 100644
417 --- a/Source/WebKit2/UIProcess/API/qt/qwkpage.h
418 +++ b/Source/WebKit2/UIProcess/API/qt/qwkpage.h
419 @@ -45,7 +45,8 @@ public:
428 class QWEBKIT_EXPORT ViewportAttributes {
429 diff --git a/Source/WebKit2/UIProcess/qt/WebContextMenuProxyQt.cpp b/Source/WebKit2/UIProcess/qt/WebContextMenuProxyQt.cpp
430 index 1133c2f..e2c75e6 100644
431 --- a/Source/WebKit2/UIProcess/qt/WebContextMenuProxyQt.cpp
432 +++ b/Source/WebKit2/UIProcess/qt/WebContextMenuProxyQt.cpp
433 @@ -46,6 +46,8 @@ static QWKPage::WebAction webActionForContextMenuAction(WebCore::ContextMenuActi
434 return QWKPage::OpenLinkInNewWindow;
435 case WebCore::ContextMenuItemTagCopyLinkToClipboard:
436 return QWKPage::CopyLinkToClipboard;
437 + case WebCore::ContextMenuItemTagGotoYoutubeLink:
438 + return QWKPage::GotoYoutubeLink;
439 case WebCore::ContextMenuItemTagOpenImageInNewWindow:
440 return QWKPage::OpenImageInNewWindow;
441 case WebCore::ContextMenuItemTagGoBack: