| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <atlctl.h> | 10 #include <atlctl.h> |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 case IDS_CONTENT_CONTEXT_SAVEIMAGEAS: | 350 case IDS_CONTENT_CONTEXT_SAVEIMAGEAS: |
| 351 case IDS_CONTENT_CONTEXT_SAVELINKAS: { | 351 case IDS_CONTENT_CONTEXT_SAVELINKAS: { |
| 352 GURL referrer, url; | 352 GURL referrer, url; |
| 353 chrome_frame::GetMiniContextMenuData(cmd, params, &referrer, &url); | 353 chrome_frame::GetMiniContextMenuData(cmd, params, &referrer, &url); |
| 354 DoFileDownloadInIE(UTF8ToWide(url.spec()).c_str()); | 354 DoFileDownloadInIE(UTF8ToWide(url.spec()).c_str()); |
| 355 return true; | 355 return true; |
| 356 } | 356 } |
| 357 | 357 |
| 358 case IDC_PRINT: { | 358 case IDC_PRINT: { |
| 359 automation_client_->PrintTab(); | 359 automation_client_->PrintTab(); |
| 360 break; | 360 return true; |
| 361 } | 361 } |
| 362 } | 362 } |
| 363 } | 363 } |
| 364 | 364 |
| 365 return false; | 365 return false; |
| 366 } | 366 } |
| 367 | 367 |
| 368 // Should connections initiated by this class try to block | 368 // Should connections initiated by this class try to block |
| 369 // responses served with the X-Frame-Options header? | 369 // responses served with the X-Frame-Options header? |
| 370 // ActiveX controls genereally will want to do this, | 370 // ActiveX controls genereally will want to do this, |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 EventHandlers onreadystatechanged_; | 1220 EventHandlers onreadystatechanged_; |
| 1221 EventHandlers onprivatemessage_; | 1221 EventHandlers onprivatemessage_; |
| 1222 EventHandlers onextensionready_; | 1222 EventHandlers onextensionready_; |
| 1223 | 1223 |
| 1224 // Handle network requests when host network stack is used. Passed to the | 1224 // Handle network requests when host network stack is used. Passed to the |
| 1225 // automation client on initialization. | 1225 // automation client on initialization. |
| 1226 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; | 1226 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; |
| 1227 }; | 1227 }; |
| 1228 | 1228 |
| 1229 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 1229 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| OLD | NEW |