| OLD | NEW | 
|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 // Implementation of ChromeActiveDocument | 5 // Implementation of ChromeActiveDocument | 
| 6 #include "chrome_frame/chrome_active_document.h" | 6 #include "chrome_frame/chrome_active_document.h" | 
| 7 | 7 | 
| 8 #include <hlink.h> | 8 #include <hlink.h> | 
| 9 #include <htiface.h> | 9 #include <htiface.h> | 
| 10 #include <initguid.h> | 10 #include <initguid.h> | 
| (...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1257   DCHECK(shell_browser.get() != NULL); | 1257   DCHECK(shell_browser.get() != NULL); | 
| 1258   ScopedComPtr<ITridentService2> trident_services; | 1258   ScopedComPtr<ITridentService2> trident_services; | 
| 1259   trident_services.QueryFrom(shell_browser); | 1259   trident_services.QueryFrom(shell_browser); | 
| 1260   if (trident_services) | 1260   if (trident_services) | 
| 1261     trident_services->FirePrivacyImpactedStateChange(wparam); | 1261     trident_services->FirePrivacyImpactedStateChange(wparam); | 
| 1262   else | 1262   else | 
| 1263     NOTREACHED() << "Failed to retrieve IWebBrowser2 interface."; | 1263     NOTREACHED() << "Failed to retrieve IWebBrowser2 interface."; | 
| 1264   return 0; | 1264   return 0; | 
| 1265 } | 1265 } | 
| 1266 | 1266 | 
|  | 1267 LRESULT ChromeActiveDocument::OnShowWindow(UINT message, WPARAM wparam, | 
|  | 1268                                            LPARAM lparam, | 
|  | 1269                                            BOOL& handled) {  // NO_LINT | 
|  | 1270   if (wparam) | 
|  | 1271     SetFocus(); | 
|  | 1272   return 0; | 
|  | 1273 } | 
|  | 1274 | 
|  | 1275 LRESULT ChromeActiveDocument::OnSetFocus(UINT message, WPARAM wparam, | 
|  | 1276                                          LPARAM lparam, | 
|  | 1277                                          BOOL& handled) {  // NO_LINT | 
|  | 1278   GiveFocusToChrome(false); | 
|  | 1279   return 0; | 
|  | 1280 } | 
|  | 1281 | 
| 1267 namespace { | 1282 namespace { | 
| 1268 struct ModuleAndVersion { | 1283 struct ModuleAndVersion { | 
| 1269   const char* module_name_; | 1284   const char* module_name_; | 
| 1270   const uint32 major_version_; | 1285   const uint32 major_version_; | 
| 1271   const uint32 minor_version_; | 1286   const uint32 minor_version_; | 
| 1272 }; | 1287 }; | 
| 1273 }  // end namespace | 1288 }  // end namespace | 
| 1274 | 1289 | 
| 1275 // static | 1290 // static | 
| 1276 bool ChromeActiveDocument::ShouldFireDocumentComplete() { | 1291 bool ChromeActiveDocument::ShouldFireDocumentComplete() { | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1316       } | 1331       } | 
| 1317     } | 1332     } | 
| 1318 | 1333 | 
| 1319     if (results == CHECK_NOT_DONE) | 1334     if (results == CHECK_NOT_DONE) | 
| 1320       results = DOCUMENT_COMPLETE_OK; | 1335       results = DOCUMENT_COMPLETE_OK; | 
| 1321   } | 1336   } | 
| 1322 | 1337 | 
| 1323   return results == DOCUMENT_COMPLETE_OK; | 1338   return results == DOCUMENT_COMPLETE_OK; | 
| 1324 } | 1339 } | 
| 1325 | 1340 | 
| OLD | NEW | 
|---|