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

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

Issue 2788283002: Fix PrintPreviewDestinationSearchTest.Select (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/test/data/webui/print_preview_destination_search_test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 base::TimeTicks initial_preview_start_time_; 168 base::TimeTicks initial_preview_start_time_;
169 169
170 // The unique ID for this class instance. Stored here to avoid calling 170 // The unique ID for this class instance. Stored here to avoid calling
171 // GetIDForPrintPreviewUI() everywhere. 171 // GetIDForPrintPreviewUI() everywhere.
172 const int32_t id_; 172 const int32_t id_;
173 173
174 // Weak pointer to the WebUI handler. 174 // Weak pointer to the WebUI handler.
175 PrintPreviewHandler* handler_; 175 PrintPreviewHandler* handler_;
176 176
177 // Indicates whether the source document can be modified. 177 // Indicates whether the source document can be modified.
178 bool source_is_modifiable_; 178 bool source_is_modifiable_ = false;
Lei Zhang 2017/04/03 20:32:42 This is also being set in the constructor... to tr
skau 2017/04/04 17:37:02 Done.
179 179
180 // Indicates whether the source document has selection. 180 // Indicates whether the source document has selection.
181 bool source_has_selection_; 181 bool source_has_selection_ = false;
182 182
183 // Indicates whether only the selection should be printed. 183 // Indicates whether only the selection should be printed.
184 bool print_selection_only_; 184 bool print_selection_only_ = false;
Lei Zhang 2017/04/03 20:32:42 This is the missing initialization. Let's move it
skau 2017/04/04 17:37:02 Done.
185 185
186 // Store the initiator title, used for populating the print preview dialog 186 // Store the initiator title, used for populating the print preview dialog
187 // title. 187 // title.
188 base::string16 initiator_title_; 188 base::string16 initiator_title_;
189 189
190 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. 190 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not.
191 bool dialog_closed_; 191 bool dialog_closed_ = false;
192 192
193 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 193 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
194 }; 194 };
195 195
196 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 196 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/webui/print_preview_destination_search_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698