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

Side by Side Diff: pdf/instance.h

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « chrome/renderer/pepper/pepper_printing_renderer_host.cc ('k') | pdf/instance.cc » ('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 PDF_INSTANCE_H_ 5 #ifndef PDF_INSTANCE_H_
6 #define PDF_INSTANCE_H_ 6 #define PDF_INSTANCE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 void UpdatePageIndicatorPosition(bool invalidate); 269 void UpdatePageIndicatorPosition(bool invalidate);
270 270
271 void FormDidOpen(int32_t result); 271 void FormDidOpen(int32_t result);
272 272
273 std::string GetLocalizedString(PP_ResourceString id); 273 std::string GetLocalizedString(PP_ResourceString id);
274 274
275 void UserMetricsRecordAction(const std::string& action); 275 void UserMetricsRecordAction(const std::string& action);
276 276
277 void SaveAs(); 277 void SaveAs();
278 278
279 void SetPrintPresetOptionsFromDocument();
280
279 enum ZoomMode { 281 enum ZoomMode {
280 ZOOM_SCALE, // Standard zooming mode, resize will not affect it. 282 ZOOM_SCALE, // Standard zooming mode, resize will not affect it.
281 ZOOM_FIT_TO_WIDTH, // Maintain fit to width on resize. 283 ZOOM_FIT_TO_WIDTH, // Maintain fit to width on resize.
282 ZOOM_FIT_TO_PAGE, // Maintain fit to page on resize. 284 ZOOM_FIT_TO_PAGE, // Maintain fit to page on resize.
283 ZOOM_AUTO // Maintain the default auto fitting mode on resize. 285 ZOOM_AUTO // Maintain the default auto fitting mode on resize.
284 }; 286 };
285 287
286 enum DocumentLoadState { 288 enum DocumentLoadState {
287 LOAD_STATE_LOADING, 289 LOAD_STATE_LOADING,
288 LOAD_STATE_COMPLETE, 290 LOAD_STATE_COMPLETE,
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 const std::vector<pp::Var>& args, 524 const std::vector<pp::Var>& args,
523 pp::Var* exception); 525 pp::Var* exception);
524 526
525 private: 527 private:
526 Instance* instance_; 528 Instance* instance_;
527 }; 529 };
528 530
529 } // namespace chrome_pdf 531 } // namespace chrome_pdf
530 532
531 #endif // PDF_INSTANCE_H_ 533 #endif // PDF_INSTANCE_H_
OLDNEW
« no previous file with comments | « chrome/renderer/pepper/pepper_printing_renderer_host.cc ('k') | pdf/instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698