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

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

Issue 629463003: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[w-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 public local_discovery::PrivetLocalPrintOperation::Delegate, 45 public local_discovery::PrivetLocalPrintOperation::Delegate,
46 #endif 46 #endif
47 public ui::SelectFileDialog::Listener, 47 public ui::SelectFileDialog::Listener,
48 public printing::PrintViewManagerObserver, 48 public printing::PrintViewManagerObserver,
49 public MergeSessionHelper::Observer { 49 public MergeSessionHelper::Observer {
50 public: 50 public:
51 PrintPreviewHandler(); 51 PrintPreviewHandler();
52 virtual ~PrintPreviewHandler(); 52 virtual ~PrintPreviewHandler();
53 53
54 // WebUIMessageHandler implementation. 54 // WebUIMessageHandler implementation.
55 virtual void RegisterMessages() OVERRIDE; 55 virtual void RegisterMessages() override;
56 56
57 // SelectFileDialog::Listener implementation. 57 // SelectFileDialog::Listener implementation.
58 virtual void FileSelected(const base::FilePath& path, 58 virtual void FileSelected(const base::FilePath& path,
59 int index, 59 int index,
60 void* params) OVERRIDE; 60 void* params) override;
61 virtual void FileSelectionCanceled(void* params) OVERRIDE; 61 virtual void FileSelectionCanceled(void* params) override;
62 62
63 // PrintViewManagerObserver implementation. 63 // PrintViewManagerObserver implementation.
64 virtual void OnPrintDialogShown() OVERRIDE; 64 virtual void OnPrintDialogShown() override;
65 65
66 // MergeSessionHelper::Observer implementation. 66 // MergeSessionHelper::Observer implementation.
67 virtual void MergeSessionCompleted( 67 virtual void MergeSessionCompleted(
68 const std::string& account_id, 68 const std::string& account_id,
69 const GoogleServiceAuthError& error) OVERRIDE; 69 const GoogleServiceAuthError& error) override;
70 70
71 // Displays a modal dialog, prompting the user to select a file. 71 // Displays a modal dialog, prompting the user to select a file.
72 void SelectFile(const base::FilePath& default_path); 72 void SelectFile(const base::FilePath& default_path);
73 73
74 // Called when the print preview dialog is destroyed. This is the last time 74 // Called when the print preview dialog is destroyed. This is the last time
75 // this object has access to the PrintViewManager in order to disconnect the 75 // this object has access to the PrintViewManager in order to disconnect the
76 // observer. 76 // observer.
77 void OnPrintPreviewDialogDestroyed(); 77 void OnPrintPreviewDialogDestroyed();
78 78
79 // Called when print preview failed. 79 // Called when print preview failed.
80 void OnPrintPreviewFailed(); 80 void OnPrintPreviewFailed();
81 81
82 #if !defined(DISABLE_BASIC_PRINTING) 82 #if !defined(DISABLE_BASIC_PRINTING)
83 // Called when the user press ctrl+shift+p to display the native system 83 // Called when the user press ctrl+shift+p to display the native system
84 // dialog. 84 // dialog.
85 void ShowSystemDialog(); 85 void ShowSystemDialog();
86 #endif // !DISABLE_BASIC_PRINTING 86 #endif // !DISABLE_BASIC_PRINTING
87 87
88 #if defined(ENABLE_SERVICE_DISCOVERY) 88 #if defined(ENABLE_SERVICE_DISCOVERY)
89 // PrivetLocalPrinterLister::Delegate implementation. 89 // PrivetLocalPrinterLister::Delegate implementation.
90 virtual void LocalPrinterChanged( 90 virtual void LocalPrinterChanged(
91 bool added, 91 bool added,
92 const std::string& name, 92 const std::string& name,
93 bool has_local_printing, 93 bool has_local_printing,
94 const local_discovery::DeviceDescription& description) OVERRIDE; 94 const local_discovery::DeviceDescription& description) override;
95 virtual void LocalPrinterRemoved(const std::string& name) OVERRIDE; 95 virtual void LocalPrinterRemoved(const std::string& name) override;
96 virtual void LocalPrinterCacheFlushed() OVERRIDE; 96 virtual void LocalPrinterCacheFlushed() override;
97 97
98 // PrivetLocalPrintOperation::Delegate implementation. 98 // PrivetLocalPrintOperation::Delegate implementation.
99 virtual void OnPrivetPrintingDone( 99 virtual void OnPrivetPrintingDone(
100 const local_discovery::PrivetLocalPrintOperation* 100 const local_discovery::PrivetLocalPrintOperation*
101 print_operation) OVERRIDE; 101 print_operation) override;
102 virtual void OnPrivetPrintingError( 102 virtual void OnPrivetPrintingError(
103 const local_discovery::PrivetLocalPrintOperation* print_operation, 103 const local_discovery::PrivetLocalPrintOperation* print_operation,
104 int http_code) OVERRIDE; 104 int http_code) override;
105 #endif // ENABLE_SERVICE_DISCOVERY 105 #endif // ENABLE_SERVICE_DISCOVERY
106 int regenerate_preview_request_count() const { 106 int regenerate_preview_request_count() const {
107 return regenerate_preview_request_count_; 107 return regenerate_preview_request_count_;
108 } 108 }
109 109
110 // Sets |pdf_file_saved_closure_| to |closure|. 110 // Sets |pdf_file_saved_closure_| to |closure|.
111 void SetPdfSavedClosureForTesting(const base::Closure& closure); 111 void SetPdfSavedClosureForTesting(const base::Closure& closure);
112 112
113 private: 113 private:
114 friend class PrintPreviewPdfGeneratedBrowserTest; 114 friend class PrintPreviewPdfGeneratedBrowserTest;
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 // Notifies tests that want to know if the PDF has been saved. This doesn't 342 // Notifies tests that want to know if the PDF has been saved. This doesn't
343 // notify the test if it was a successful save, only that it was attempted. 343 // notify the test if it was a successful save, only that it was attempted.
344 base::Closure pdf_file_saved_closure_; 344 base::Closure pdf_file_saved_closure_;
345 345
346 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; 346 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_;
347 347
348 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 348 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
349 }; 349 };
350 350
351 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 351 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698