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

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

Issue 8872051: Print preview: Display a dummy page when a user visits chrome://print directly. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years 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
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Indicates whether the source document can be modified. 160 // Indicates whether the source document can be modified.
161 bool source_is_modifiable_; 161 bool source_is_modifiable_;
162 162
163 // Store the initiator tab title, used for populating the print preview tab 163 // Store the initiator tab title, used for populating the print preview tab
164 // title. 164 // title.
165 string16 initiator_tab_title_; 165 string16 initiator_tab_title_;
166 166
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 // Whether the user visited the page directly, or if it's a live UI.
dpapad 2011/12/12 19:26:30 Nit: True if the user visited the page directly, f
Lei Zhang 2011/12/13 02:25:19 Done.
171 bool is_dummy_;
172
170 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 173 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
171 }; 174 };
172 175
173 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ 176 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698