| Index: webkit/tools/test_shell/mac/webview_host.mm
|
| ===================================================================
|
| --- webkit/tools/test_shell/mac/webview_host.mm (revision 29510)
|
| +++ webkit/tools/test_shell/mac/webview_host.mm (working copy)
|
| @@ -13,6 +13,7 @@
|
| #include "webkit/api/public/WebSize.h"
|
| #include "webkit/api/public/WebView.h"
|
| #include "webkit/glue/webpreferences.h"
|
| +#include "webkit/tools/test_shell/test_shell.h"
|
| #include "webkit/tools/test_shell/test_webview_delegate.h"
|
|
|
| using WebKit::WebSize;
|
| @@ -48,3 +49,10 @@
|
| WebView* WebViewHost::webview() const {
|
| return static_cast<WebView*>(webwidget_);
|
| }
|
| +
|
| +void WebViewHost::SetIsActive(bool active) {
|
| + // Ignore calls in layout test mode so that tests don't mess with each other
|
| + // when running in parallel.
|
| + if (!TestShell::layout_test_mode())
|
| + webview()->setIsActive(active);
|
| +}
|
|
|