print_view_manager_observer.h 769 B

123456789101112131415161718192021222324
  1. // Copyright (c) 2011 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_OBSERVER_H_
  5. #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_OBSERVER_H_
  6. namespace printing {
  7. // An interface the PrintViewManager uses to notify an observer when the print
  8. // dialog is shown. Register the observer via PrintViewManager::set_observer.
  9. class PrintViewManagerObserver {
  10. public:
  11. // Notifies the observer that the print dialog was shown.
  12. virtual void OnPrintDialogShown() = 0;
  13. protected:
  14. virtual ~PrintViewManagerObserver() {}
  15. };
  16. } // namespace printing
  17. #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_OBSERVER_H_