Chromium Code Reviews| Index: chrome/browser/printing/print_view_manager_observer.h |
| diff --git a/chrome/browser/printing/print_view_manager_observer.h b/chrome/browser/printing/print_view_manager_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..25a4c5bd553dcce9a9b1eca40c0606d9a73d6a6e |
| --- /dev/null |
| +++ b/chrome/browser/printing/print_view_manager_observer.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_OBSERVER_H_ |
| +#define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_OBSERVER_H_ |
| +#pragma once |
| + |
| +namespace printing { |
| + |
| +// An interface the PrintViewManager uses to notify an observer when the print |
| +// dialog is shown. Register the observer via PrintViewManager::SetObserver. |
|
Lei Zhang
2011/06/28 09:15:38
s/SetObserver/set_observer/
James Hawkins
2011/06/28 18:15:36
Done.
|
| +class PrintViewManagerObserver { |
| + public: |
| + // Notifies the observer that the print dialog was shown. |
| + virtual void OnPrintDialogShown() = 0; |
| + |
| + protected: |
| + virtual ~PrintViewManagerObserver() {} |
| +}; |
| + |
| +} // namespace printing |
| + |
| +#endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_OBSERVER_H_ |