Index: chrome_frame/chrome_active_document.cc |
=================================================================== |
--- chrome_frame/chrome_active_document.cc (revision 53106) |
+++ chrome_frame/chrome_active_document.cc (working copy) |
@@ -1264,6 +1264,21 @@ |
return 0; |
} |
+LRESULT ChromeActiveDocument::OnShowWindow(UINT message, WPARAM wparam, |
+ LPARAM lparam, |
+ BOOL& handled) { // NO_LINT |
+ if (wparam) |
+ SetFocus(); |
+ return 0; |
+} |
+ |
+LRESULT ChromeActiveDocument::OnSetFocus(UINT message, WPARAM wparam, |
+ LPARAM lparam, |
+ BOOL& handled) { // NO_LINT |
+ GiveFocusToChrome(false); |
+ return 0; |
+} |
+ |
namespace { |
struct ModuleAndVersion { |
const char* module_name_; |