OLD | NEW |
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 void UpdatePageIndicatorPosition(bool invalidate); | 266 void UpdatePageIndicatorPosition(bool invalidate); |
267 | 267 |
268 void FormDidOpen(int32_t result); | 268 void FormDidOpen(int32_t result); |
269 | 269 |
270 std::string GetLocalizedString(PP_ResourceString id); | 270 std::string GetLocalizedString(PP_ResourceString id); |
271 | 271 |
272 void UserMetricsRecordAction(const std::string& action); | 272 void UserMetricsRecordAction(const std::string& action); |
273 | 273 |
274 void SaveAs(); | 274 void SaveAs(); |
275 | 275 |
| 276 void SetPrintPresetOptionsFromDocument(); |
| 277 |
276 enum ZoomMode { | 278 enum ZoomMode { |
277 ZOOM_SCALE, // Standard zooming mode, resize will not affect it. | 279 ZOOM_SCALE, // Standard zooming mode, resize will not affect it. |
278 ZOOM_FIT_TO_WIDTH, // Maintain fit to width on resize. | 280 ZOOM_FIT_TO_WIDTH, // Maintain fit to width on resize. |
279 ZOOM_FIT_TO_PAGE, // Maintain fit to page on resize. | 281 ZOOM_FIT_TO_PAGE, // Maintain fit to page on resize. |
280 ZOOM_AUTO // Maintain the default auto fitting mode on resize. | 282 ZOOM_AUTO // Maintain the default auto fitting mode on resize. |
281 }; | 283 }; |
282 | 284 |
283 enum DocumentLoadState { | 285 enum DocumentLoadState { |
284 LOAD_STATE_LOADING, | 286 LOAD_STATE_LOADING, |
285 LOAD_STATE_COMPLETE, | 287 LOAD_STATE_COMPLETE, |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 const std::vector<pp::Var>& args, | 519 const std::vector<pp::Var>& args, |
518 pp::Var* exception); | 520 pp::Var* exception); |
519 | 521 |
520 private: | 522 private: |
521 Instance* instance_; | 523 Instance* instance_; |
522 }; | 524 }; |
523 | 525 |
524 } // namespace chrome_pdf | 526 } // namespace chrome_pdf |
525 | 527 |
526 #endif // PDF_INSTANCE_H_ | 528 #endif // PDF_INSTANCE_H_ |
OLD | NEW |