Home | History | Annotate | Download | only in webui
      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 
      5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
      6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
      7 #pragma once
      8 
      9 #include "base/memory/ref_counted.h"
     10 #include "content/browser/webui/web_ui.h"
     11 
     12 class PrintPreviewUIHTMLSource;
     13 
     14 class PrintPreviewUI : public WebUI {
     15  public:
     16   explicit PrintPreviewUI(TabContents* contents);
     17   virtual ~PrintPreviewUI();
     18 
     19   PrintPreviewUIHTMLSource* html_source();
     20 
     21   // Notify the Web UI renderer that preview data is available.
     22   // |expected_pages_count| specifies the total number of pages.
     23   // |job_title| is the title of the page being previewed.
     24   void PreviewDataIsAvailable(int expected_pages_count,
     25                               const string16& job_title);
     26 
     27  private:
     28   scoped_refptr<PrintPreviewUIHTMLSource> html_source_;
     29 
     30   DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
     31 };
     32 
     33 #endif  // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
     34