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

Side by Side Diff: chrome/browser/ui/webui/print_preview_ui.h

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/ref_counted_memory.h" 12 #include "base/memory/ref_counted_memory.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "chrome/browser/printing/print_preview_data_service.h" 14 #include "chrome/browser/printing/print_preview_data_service.h"
15 #include "chrome/browser/ui/webui/constrained_html_ui.h" 15 #include "chrome/browser/ui/webui/constrained_html_ui.h"
16 16
17 class PrintPreviewDataService; 17 class PrintPreviewDataService;
18 class PrintPreviewHandler; 18 class PrintPreviewHandler;
19 struct PrintHostMsg_DidGetPreviewPageCount_Params; 19 struct PrintHostMsg_DidGetPreviewPageCount_Params;
20 20
21 namespace printing { 21 namespace printing {
22 struct PageSizeMargins; 22 struct PageSizeMargins;
23 } 23 }
24 24
25 class PrintPreviewUI : public ConstrainedHtmlUI { 25 class PrintPreviewUI : public ConstrainedHtmlUI {
26 public: 26 public:
27 explicit PrintPreviewUI(TabContents* contents); 27 explicit PrintPreviewUI(content::WebContents* contents);
28 virtual ~PrintPreviewUI(); 28 virtual ~PrintPreviewUI();
29 29
30 // Gets the print preview |data|. |index| is zero-based, and can be 30 // Gets the print preview |data|. |index| is zero-based, and can be
31 // |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to get the entire preview 31 // |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to get the entire preview
32 // document. 32 // document.
33 void GetPrintPreviewDataForIndex(int index, 33 void GetPrintPreviewDataForIndex(int index,
34 scoped_refptr<RefCountedBytes>* data); 34 scoped_refptr<RefCountedBytes>* data);
35 35
36 // Sets the print preview |data|. |index| is zero-based, and can be 36 // Sets the print preview |data|. |index| is zero-based, and can be
37 // |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to set the entire preview 37 // |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to set the entire preview
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. 167 // Keeps track of whether OnClosePrintPreviewTab() has been called or not.
168 bool tab_closed_; 168 bool tab_closed_;
169 169
170 // True if the user visited the page directly, false if it's a live UI. 170 // True if the user visited the page directly, false if it's a live UI.
171 bool is_dummy_; 171 bool is_dummy_;
172 172
173 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 173 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
174 }; 174 };
175 175
176 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ 176 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler.cc ('k') | chrome/browser/ui/webui/print_preview_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698