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

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

Issue 517193003: More System Dialog printing code disabled on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@522493002
Patch Set: Mon Sep 8 01:10:20 PDT 2014 Created 6 years, 3 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
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/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 static void GetCurrentPrintPreviewStatus(int32 preview_ui_id, 77 static void GetCurrentPrintPreviewStatus(int32 preview_ui_id,
78 int request_id, 78 int request_id,
79 bool* cancel); 79 bool* cancel);
80 80
81 // Returns an id to uniquely identify this PrintPreviewUI. 81 // Returns an id to uniquely identify this PrintPreviewUI.
82 int32 GetIDForPrintPreviewUI() const; 82 int32 GetIDForPrintPreviewUI() const;
83 83
84 // Notifies the Web UI of a print preview request with |request_id|. 84 // Notifies the Web UI of a print preview request with |request_id|.
85 void OnPrintPreviewRequest(int request_id); 85 void OnPrintPreviewRequest(int request_id);
86 86
87 #if !defined(DISABLE_BASIC_PRINTING)
87 // Notifies the Web UI to show the system dialog. 88 // Notifies the Web UI to show the system dialog.
88 void OnShowSystemDialog(); 89 void OnShowSystemDialog();
90 #endif // !DISABLE_BASIC_PRINTING
89 91
90 // Notifies the Web UI about the page count of the request preview. 92 // Notifies the Web UI about the page count of the request preview.
91 void OnDidGetPreviewPageCount( 93 void OnDidGetPreviewPageCount(
92 const PrintHostMsg_DidGetPreviewPageCount_Params& params); 94 const PrintHostMsg_DidGetPreviewPageCount_Params& params);
93 95
94 // Notifies the Web UI of the default page layout according to the currently 96 // Notifies the Web UI of the default page layout according to the currently
95 // selected printer and page size. 97 // selected printer and page size.
96 void OnDidGetDefaultPageLayout(const printing::PageSizeMargins& page_layout, 98 void OnDidGetDefaultPageLayout(const printing::PageSizeMargins& page_layout,
97 const gfx::Rect& printable_area, 99 const gfx::Rect& printable_area,
98 bool has_custom_page_size_style); 100 bool has_custom_page_size_style);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // title. 204 // title.
203 base::string16 initiator_title_; 205 base::string16 initiator_title_;
204 206
205 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. 207 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not.
206 bool dialog_closed_; 208 bool dialog_closed_;
207 209
208 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 210 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
209 }; 211 };
210 212
211 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 213 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698