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

Unified Diff: chrome/browser/browser.cc

Issue 200138: GTK: Add a dialog for printing. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/linux/system.gyp ('k') | chrome/browser/printing/print_dialog_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
===================================================================
--- chrome/browser/browser.cc (revision 26368)
+++ chrome/browser/browser.cc (working copy)
@@ -2257,7 +2257,17 @@
// Page-related commands
command_updater_.UpdateCommandEnabled(IDC_CLOSE_POPUPS, true);
+ // TODO(estade): remove these ifdefs when printing is fully supported.
+#if defined(OS_LINUX)
+#if defined(TOOLKIT_GTK)
+ command_updater_.UpdateCommandEnabled(IDC_PRINT,
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePrinting));
+#else // defined(TOOLKIT_VIEWS)
+ command_updater_.UpdateCommandEnabled(IDC_PRINT, false);
+#endif
+#else // !defined(OS_LINUX)
command_updater_.UpdateCommandEnabled(IDC_PRINT, true);
+#endif
command_updater_.UpdateCommandEnabled(IDC_ENCODING_AUTO_DETECT, true);
command_updater_.UpdateCommandEnabled(IDC_ENCODING_UTF8, true);
command_updater_.UpdateCommandEnabled(IDC_ENCODING_UTF16LE, true);
« no previous file with comments | « build/linux/system.gyp ('k') | chrome/browser/printing/print_dialog_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698