-
tristan authored
Reviewed by Timothy Hatcher. This patch is for the WebKit side of <rdar://problem/5591115>. We need a way to tell context menu navigations, such as "Open in New Window" to override any sort of browser preference for tab based navigation. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::createWindow): Pass up the new preferredType parameter as a string. WebCore: Reviewed by Timothy Hatcher. This patch is for the WebKit side of <rdar://problem/5591115>. We need a way to tell context menu navigations, such as "Open in New Window" to override any sort of browser preference for tab based navigation. * bridge/WindowFeatures.h: (WebCore::WindowFeatures::WindowFeatures): Added a new struct member var, preferredType and an accompanying enum type PreferredType to send a window type recommendation up to the Chrome. * page/ContextMenuController.cpp: (WebCore::openNewWindow): Set the window features to recommend a new Window for "Open in New Window" context menu action. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7489b5a6