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

Side by Side Diff: pdf/out_of_process_instance.h

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PPB_Printing_Dev changes 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 PDF_OUT_OF_PROCESS_INSTANCE_H_ 5 #ifndef PDF_OUT_OF_PROCESS_INSTANCE_H_
6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_ 6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // Returns -1 if there is no valid fragment. The returned value is 0-based, 175 // Returns -1 if there is no valid fragment. The returned value is 0-based,
176 // whereas page=N is 1-based. 176 // whereas page=N is 1-based.
177 int GetInitialPage(const std::string& url); 177 int GetInitialPage(const std::string& url);
178 178
179 void FormDidOpen(int32_t result); 179 void FormDidOpen(int32_t result);
180 180
181 std::string GetLocalizedString(PP_ResourceString id); 181 std::string GetLocalizedString(PP_ResourceString id);
182 182
183 void UserMetricsRecordAction(const std::string& action); 183 void UserMetricsRecordAction(const std::string& action);
184 184
185 void SetPrintPresetOptionsFromDocument();
186
185 enum DocumentLoadState { 187 enum DocumentLoadState {
186 LOAD_STATE_LOADING, 188 LOAD_STATE_LOADING,
187 LOAD_STATE_COMPLETE, 189 LOAD_STATE_COMPLETE,
188 LOAD_STATE_FAILED, 190 LOAD_STATE_FAILED,
189 }; 191 };
190 192
191 // Set new zoom scale. 193 // Set new zoom scale.
192 void SetZoom(double scale); 194 void SetZoom(double scale);
193 195
194 // Reduces the document to 1 page and appends |print_preview_page_count_| 196 // Reduces the document to 1 page and appends |print_preview_page_count_|
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // zooming the plugin so that flickering doesn't occur while zooming. 338 // zooming the plugin so that flickering doesn't occur while zooming.
337 bool stop_scrolling_; 339 bool stop_scrolling_;
338 340
339 // The callback for receiving the password from the page. 341 // The callback for receiving the password from the page.
340 scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_; 342 scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_;
341 }; 343 };
342 344
343 } // namespace chrome_pdf 345 } // namespace chrome_pdf
344 346
345 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ 347 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698