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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.h

Issue 22577010: Printing: Add a basic printing mode without print preview and cloud print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 4 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
Index: chrome/browser/ui/webui/options/browser_options_handler.h
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.h b/chrome/browser/ui/webui/options/browser_options_handler.h
index b0ca80647bb48b3c70019ee177804ccf0b0a0265..2c75f71477464e249318c11be854300857f141b5 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.h
+++ b/chrome/browser/ui/webui/options/browser_options_handler.h
@@ -73,7 +73,9 @@ class BrowserOptionsHandler
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
+#if defined(ENABLE_FULL_PRINTING) && !defined(OS_CHROMEOS)
void OnCloudPrintPrefsChanged();
+#endif
// SelectFileDialog::Listener implementation
virtual void FileSelected(const base::FilePath& path,
@@ -243,6 +245,7 @@ class BrowserOptionsHandler
void ShowManageSSLCertificates(const ListValue* args);
#endif
+#if defined(ENABLE_FULL_PRINTING)
// Callback for the Cloud Print manage button. This will open a new
// tab pointed at the management URL.
void ShowCloudPrintManagePage(const ListValue* args);
@@ -269,7 +272,8 @@ class BrowserOptionsHandler
// Remove cloud print connector section if cloud print connector management
// UI is disabled.
void RemoveCloudPrintConnectorSection();
-#endif
+#endif // defined(OS_CHROMEOS)
+#endif // defined(ENABLE_FULL_PRINTING)
#if defined(OS_CHROMEOS)
// Opens the wallpaper manager component extension.
@@ -337,7 +341,7 @@ class BrowserOptionsHandler
scoped_refptr<ui::SelectFileDialog> select_folder_dialog_;
-#if !defined(OS_CHROMEOS)
+#if defined(ENABLE_FULL_PRINTING) && !defined(OS_CHROMEOS)
StringPrefMember cloud_print_connector_email_;
BooleanPrefMember cloud_print_connector_enabled_;
bool cloud_print_connector_ui_enabled_;

Powered by Google App Engine
This is Rietveld 408576698