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

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: PPP_Pdf 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_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual int32_t PrintBegin( 83 virtual int32_t PrintBegin(
84 const PP_PrintSettings_Dev& print_settings) OVERRIDE; 84 const PP_PrintSettings_Dev& print_settings) OVERRIDE;
85 virtual pp::Resource PrintPages( 85 virtual pp::Resource PrintPages(
86 const PP_PrintPageNumberRange_Dev* page_ranges, 86 const PP_PrintPageNumberRange_Dev* page_ranges,
87 uint32_t page_range_count) OVERRIDE; 87 uint32_t page_range_count) OVERRIDE;
88 virtual void PrintEnd() OVERRIDE; 88 virtual void PrintEnd() OVERRIDE;
89 virtual bool IsPrintScalingDisabled() OVERRIDE; 89 virtual bool IsPrintScalingDisabled() OVERRIDE;
90 90
91 // pp::Private implementation. 91 // pp::Private implementation.
92 virtual pp::Var GetLinkAtPosition(const pp::Point& point); 92 virtual pp::Var GetLinkAtPosition(const pp::Point& point);
93 virtual PP_Bool GetPrintPresetOptionsFromDocument(
94 PP_PrintPresetOptions_Dev& options);
dmichael (off chromium) 2014/09/22 18:11:51 same nit; out-params should be by pointer
Nikhil 2014/09/23 10:32:28 Done.
93 95
94 // PPP_Selection_Dev implementation. 96 // PPP_Selection_Dev implementation.
95 virtual pp::Var GetSelectedText(bool html) OVERRIDE; 97 virtual pp::Var GetSelectedText(bool html) OVERRIDE;
96 98
97 // WidgetClient_Dev implementation. 99 // WidgetClient_Dev implementation.
98 virtual void InvalidateWidget(pp::Widget_Dev widget, 100 virtual void InvalidateWidget(pp::Widget_Dev widget,
99 const pp::Rect& dirty_rect) OVERRIDE; 101 const pp::Rect& dirty_rect) OVERRIDE;
100 virtual void ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar, 102 virtual void ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar,
101 uint32_t value) OVERRIDE; 103 uint32_t value) OVERRIDE;
102 virtual void ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar, 104 virtual void ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar,
(...skipping 419 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

Powered by Google App Engine
This is Rietveld 408576698