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

Side by Side Diff: chrome_frame/chrome_frame_activex_base.h

Issue 7193024: Handle the print context menu on ChromeFrame fully. Currently we handle it in both places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698