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

Unified Diff: webkit/tools/test_shell/mac/test_shell_webview.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.h ('k') | webkit/tools/test_shell/mac/webview_host.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/mac/test_shell_webview.mm
===================================================================
--- webkit/tools/test_shell/mac/test_shell_webview.mm (revision 29510)
+++ webkit/tools/test_shell/mac/test_shell_webview.mm (working copy)
@@ -196,6 +196,11 @@
return NO;
}
+- (void)setIsActive:(BOOL)active {
+ if (shell_ && shell_->webView())
+ shell_->webViewHost()->SetIsActive(active ? true : false);
+}
+
- (void)setFrame:(NSRect)frameRect {
[super setFrame:frameRect];
if (shell_ && shell_->webView())
« no previous file with comments | « webkit/tools/test_shell/mac/test_shell_webview.h ('k') | webkit/tools/test_shell/mac/webview_host.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698