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

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.h

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Merge Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "chrome/common/features.h" 16 #include "chrome/common/features.h"
17 #include "components/signin/core/browser/gaia_cookie_manager_service.h" 17 #include "components/signin/core/browser/gaia_cookie_manager_service.h"
18 #include "content/public/browser/web_ui_message_handler.h" 18 #include "content/public/browser/web_ui_message_handler.h"
19 #include "printing/features/features.h"
19 #include "ui/shell_dialogs/select_file_dialog.h" 20 #include "ui/shell_dialogs/select_file_dialog.h"
20 21
21 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) 22 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY)
22 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" 23 #include "chrome/browser/local_discovery/service_discovery_shared_client.h"
23 #include "chrome/browser/printing/cloud_print/privet_local_printer_lister.h" 24 #include "chrome/browser/printing/cloud_print/privet_local_printer_lister.h"
24 #endif 25 #endif
25 26
26 class PrinterHandler; 27 class PrinterHandler;
27 class PrintPreviewUI; 28 class PrintPreviewUI;
28 class PrintSystemTaskProxy; 29 class PrintSystemTaskProxy;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void FileSelectionCanceled(void* params) override; 64 void FileSelectionCanceled(void* params) override;
64 65
65 // GaiaCookieManagerService::Observer implementation. 66 // GaiaCookieManagerService::Observer implementation.
66 void OnAddAccountToCookieCompleted( 67 void OnAddAccountToCookieCompleted(
67 const std::string& account_id, 68 const std::string& account_id,
68 const GoogleServiceAuthError& error) override; 69 const GoogleServiceAuthError& error) override;
69 70
70 // Called when print preview failed. 71 // Called when print preview failed.
71 void OnPrintPreviewFailed(); 72 void OnPrintPreviewFailed();
72 73
73 #if defined(ENABLE_BASIC_PRINTING) 74 #if BUILDFLAG(ENABLE_BASIC_PRINTING)
74 // Called when the user press ctrl+shift+p to display the native system 75 // Called when the user press ctrl+shift+p to display the native system
75 // dialog. 76 // dialog.
76 void ShowSystemDialog(); 77 void ShowSystemDialog();
77 #endif // defined(ENABLE_BASIC_PRINTING) 78 #endif // BUILDFLAG(ENABLE_BASIC_PRINTING)
78 79
79 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) 80 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY)
80 // PrivetLocalPrinterLister::Delegate implementation. 81 // PrivetLocalPrinterLister::Delegate implementation.
81 void LocalPrinterChanged( 82 void LocalPrinterChanged(
82 const std::string& name, 83 const std::string& name,
83 bool has_local_printing, 84 bool has_local_printing,
84 const cloud_print::DeviceDescription& description) override; 85 const cloud_print::DeviceDescription& description) override;
85 void LocalPrinterRemoved(const std::string& name) override; 86 void LocalPrinterRemoved(const std::string& name) override;
86 void LocalPrinterCacheFlushed() override; 87 void LocalPrinterCacheFlushed() override;
87 88
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Notifies tests that want to know if the PDF has been saved. This doesn't 379 // Notifies tests that want to know if the PDF has been saved. This doesn't
379 // notify the test if it was a successful save, only that it was attempted. 380 // notify the test if it was a successful save, only that it was attempted.
380 base::Closure pdf_file_saved_closure_; 381 base::Closure pdf_file_saved_closure_;
381 382
382 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; 383 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_;
383 384
384 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 385 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
385 }; 386 };
386 387
387 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 388 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698