Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Unified Diff: webkit/tools/test_shell/mac/webview_host.mm

Issue 255094: [Mac] Properly call setIsActive() when becoming and resigning key window. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/mac/test_shell_webview.mm ('k') | webkit/tools/test_shell/test_shell_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+}
« no previous file with comments | « webkit/tools/test_shell/mac/test_shell_webview.mm ('k') | webkit/tools/test_shell/test_shell_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698