* Add a flag "activate" to WindowFeatures and set it to true by default. It's
supposed to allow specifying whether the new window/page shall be activated or not. * In ContextMenuController, when creating a new page from a link, specify that it shall not be activated. * Handle the new flag in the WebKit layer. -> "Open link in tab" from the context menu no longer selects the new tab, but opens it "in the background". git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@414 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
parent
0ef19ef7e1
commit
6d93874469
@ -810,14 +810,14 @@ BrowserWindow::NewWindowRequested(const BString& url, bool primaryAction)
|
||||
|
||||
void
|
||||
BrowserWindow::NewPageCreated(BWebView* view, BRect windowFrame,
|
||||
bool modalDialog, bool resizable)
|
||||
bool modalDialog, bool resizable, bool activate)
|
||||
{
|
||||
if (windowFrame.IsValid()) {
|
||||
BrowserWindow* window = new BrowserWindow(windowFrame, fAppSettings,
|
||||
DoNotHaveToolbar, view);
|
||||
window->Show();
|
||||
} else
|
||||
CreateNewTab(BString(), true, view);
|
||||
CreateNewTab(BString(), activate, view);
|
||||
}
|
||||
|
||||
|
||||
|
@ -94,7 +94,7 @@ private:
|
||||
virtual void CloseWindowRequested(BWebView* view);
|
||||
virtual void NewPageCreated(BWebView* view,
|
||||
BRect windowFrame, bool modalDialog,
|
||||
bool resizable);
|
||||
bool resizable, bool activate);
|
||||
virtual void LoadNegotiating(const BString& url,
|
||||
BWebView* view);
|
||||
virtual void LoadCommitted(const BString& url,
|
||||
|
Loading…
x
Reference in New Issue
Block a user