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

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: Review feedback (oop proxy, out-param) Created 6 years, 2 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual int32_t PrintBegin( 69 virtual int32_t PrintBegin(
70 const PP_PrintSettings_Dev& print_settings) OVERRIDE; 70 const PP_PrintSettings_Dev& print_settings) OVERRIDE;
71 virtual pp::Resource PrintPages( 71 virtual pp::Resource PrintPages(
72 const PP_PrintPageNumberRange_Dev* page_ranges, 72 const PP_PrintPageNumberRange_Dev* page_ranges,
73 uint32_t page_range_count) OVERRIDE; 73 uint32_t page_range_count) OVERRIDE;
74 virtual void PrintEnd() OVERRIDE; 74 virtual void PrintEnd() OVERRIDE;
75 virtual bool IsPrintScalingDisabled() OVERRIDE; 75 virtual bool IsPrintScalingDisabled() OVERRIDE;
76 76
77 // pp::Private implementation. 77 // pp::Private implementation.
78 virtual pp::Var GetLinkAtPosition(const pp::Point& point); 78 virtual pp::Var GetLinkAtPosition(const pp::Point& point);
79 virtual PP_Bool GetPrintPresetOptionsFromDocument(
80 PP_PrintPresetOptions_Dev* options);
79 81
80 // PPP_Selection_Dev implementation. 82 // PPP_Selection_Dev implementation.
81 virtual pp::Var GetSelectedText(bool html) OVERRIDE; 83 virtual pp::Var GetSelectedText(bool html) OVERRIDE;
82 84
83 void FlushCallback(int32_t result); 85 void FlushCallback(int32_t result);
84 void DidOpen(int32_t result); 86 void DidOpen(int32_t result);
85 void DidOpenPreview(int32_t result); 87 void DidOpenPreview(int32_t result);
86 88
87 // Called when the timer is fired. 89 // Called when the timer is fired.
88 void OnClientTimerFired(int32_t id); 90 void OnClientTimerFired(int32_t id);
(...skipping 247 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