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

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

Issue 11358027: Move constrained web dialog code back to chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros fix2 Created 8 years, 1 month 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) 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_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "ui/web_dialogs/constrained_web_dialog_ui.h" 13 #include "chrome/browser/ui/webui/constrained_web_dialog_ui.h"
14 14
15 class PrintPreviewDataService; 15 class PrintPreviewDataService;
16 class PrintPreviewHandler; 16 class PrintPreviewHandler;
17 struct PrintHostMsg_DidGetPreviewPageCount_Params; 17 struct PrintHostMsg_DidGetPreviewPageCount_Params;
18 18
19 namespace base { 19 namespace base {
20 class RefCountedBytes; 20 class RefCountedBytes;
21 } 21 }
22 22
23 namespace gfx { 23 namespace gfx {
24 class Rect; 24 class Rect;
25 } 25 }
26 26
27 namespace printing { 27 namespace printing {
28 struct PageSizeMargins; 28 struct PageSizeMargins;
29 } 29 }
30 30
31 class PrintPreviewUI : public ui::ConstrainedWebDialogUI { 31 class PrintPreviewUI : public ConstrainedWebDialogUI {
32 public: 32 public:
33 explicit PrintPreviewUI(content::WebUI* web_ui); 33 explicit PrintPreviewUI(content::WebUI* web_ui);
34 virtual ~PrintPreviewUI(); 34 virtual ~PrintPreviewUI();
35 35
36 // Gets the print preview |data|. |index| is zero-based, and can be 36 // Gets the print preview |data|. |index| is zero-based, and can be
37 // |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to get the entire preview 37 // |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to get the entire preview
38 // document. 38 // document.
39 void GetPrintPreviewDataForIndex(int index, 39 void GetPrintPreviewDataForIndex(int index,
40 scoped_refptr<base::RefCountedBytes>* data); 40 scoped_refptr<base::RefCountedBytes>* data);
41 41
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // title. 177 // title.
178 string16 initiator_tab_title_; 178 string16 initiator_tab_title_;
179 179
180 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. 180 // Keeps track of whether OnClosePrintPreviewTab() has been called or not.
181 bool tab_closed_; 181 bool tab_closed_;
182 182
183 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 183 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
184 }; 184 };
185 185
186 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 186 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698