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

Unified Diff: chrome/browser/cocoa/tab_contents_controller.mm

Issue 402091: Fix tab focus/blur events on tab switch on the Mac (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « chrome/browser/cocoa/tab_contents_controller.h ('k') | chrome/browser/cocoa/tab_strip_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/tab_contents_controller.mm
===================================================================
--- chrome/browser/cocoa/tab_contents_controller.mm (revision 32459)
+++ chrome/browser/cocoa/tab_contents_controller.mm (working copy)
@@ -39,7 +39,16 @@
return [[self view] superview] ? YES : NO;
}
+- (void)willBecomeUnselectedTab {
+ RenderViewHost* rvh = contents_->render_view_host();
+ if (rvh)
+ rvh->Blur();
+}
+
- (void)willBecomeSelectedTab {
+ RenderViewHost* rvh = contents_->render_view_host();
+ if (rvh)
+ rvh->Focus();
}
- (void)tabDidChange:(TabContents*)updatedContents {
« no previous file with comments | « chrome/browser/cocoa/tab_contents_controller.h ('k') | chrome/browser/cocoa/tab_strip_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698