| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PREVIEW_MODE_CLIENT_H_ | 5 #ifndef PDF_PREVIEW_MODE_CLIENT_H_ |
| 6 #define PDF_PREVIEW_MODE_CLIENT_H_ | 6 #define PDF_PREVIEW_MODE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "pdf/pdf_engine.h" | 13 #include "pdf/pdf_engine.h" |
| 12 | 14 |
| 13 namespace chrome_pdf { | 15 namespace chrome_pdf { |
| 14 | 16 |
| 15 // The interface that's provided to the print preview rendering engine. | 17 // The interface that's provided to the print preview rendering engine. |
| 16 class PreviewModeClient : public PDFEngine::Client { | 18 class PreviewModeClient : public PDFEngine::Client { |
| 17 public: | 19 public: |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual void ScheduleCallback(int id, int delay_in_ms); | 59 virtual void ScheduleCallback(int id, int delay_in_ms); |
| 58 virtual void SearchString(const base::char16* string, | 60 virtual void SearchString(const base::char16* string, |
| 59 const base::char16* term, | 61 const base::char16* term, |
| 60 bool case_sensitive, | 62 bool case_sensitive, |
| 61 std::vector<SearchStringResult>* results); | 63 std::vector<SearchStringResult>* results); |
| 62 virtual void DocumentPaintOccurred(); | 64 virtual void DocumentPaintOccurred(); |
| 63 virtual void DocumentLoadComplete(int page_count); | 65 virtual void DocumentLoadComplete(int page_count); |
| 64 virtual void DocumentLoadFailed(); | 66 virtual void DocumentLoadFailed(); |
| 65 virtual pp::Instance* GetPluginInstance(); | 67 virtual pp::Instance* GetPluginInstance(); |
| 66 virtual void DocumentHasUnsupportedFeature(const std::string& feature); | 68 virtual void DocumentHasUnsupportedFeature(const std::string& feature); |
| 67 virtual void DocumentLoadProgress(uint32 available, uint32 doc_size); | 69 virtual void DocumentLoadProgress(uint32_t available, uint32_t doc_size); |
| 68 virtual void FormTextFieldFocusChange(bool in_focus); | 70 virtual void FormTextFieldFocusChange(bool in_focus); |
| 69 virtual bool IsPrintPreview(); | 71 virtual bool IsPrintPreview(); |
| 70 virtual uint32 GetBackgroundColor(); | 72 virtual uint32_t GetBackgroundColor(); |
| 71 | 73 |
| 72 private: | 74 private: |
| 73 Client* client_; | 75 Client* client_; |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 } // namespace chrome_pdf | 78 } // namespace chrome_pdf |
| 77 | 79 |
| 78 #endif // PDF_PREVIEW_MODE_CLIENT_H_ | 80 #endif // PDF_PREVIEW_MODE_CLIENT_H_ |
| OLD | NEW |