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> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 std::string ShowFileSelectionDialog() override; | 58 std::string ShowFileSelectionDialog() override; |
59 pp::URLLoader CreateURLLoader() override; | 59 pp::URLLoader CreateURLLoader() override; |
60 void ScheduleCallback(int id, int delay_in_ms) override; | 60 void ScheduleCallback(int id, int delay_in_ms) override; |
61 void SearchString(const base::char16* string, | 61 void SearchString(const base::char16* string, |
62 const base::char16* term, | 62 const base::char16* term, |
63 bool case_sensitive, | 63 bool case_sensitive, |
64 std::vector<SearchStringResult>* results) override; | 64 std::vector<SearchStringResult>* results) override; |
65 void DocumentPaintOccurred() override; | 65 void DocumentPaintOccurred() override; |
66 void DocumentLoadComplete(int page_count) override; | 66 void DocumentLoadComplete(int page_count) override; |
67 void DocumentLoadFailed() override; | 67 void DocumentLoadFailed() override; |
| 68 void FontSubstituted() override; |
68 pp::Instance* GetPluginInstance() override; | 69 pp::Instance* GetPluginInstance() override; |
69 void DocumentHasUnsupportedFeature(const std::string& feature) override; | 70 void DocumentHasUnsupportedFeature(const std::string& feature) override; |
70 void DocumentLoadProgress(uint32_t available, uint32_t doc_size) override; | 71 void DocumentLoadProgress(uint32_t available, uint32_t doc_size) override; |
71 void FormTextFieldFocusChange(bool in_focus) override; | 72 void FormTextFieldFocusChange(bool in_focus) override; |
72 bool IsPrintPreview() override; | 73 bool IsPrintPreview() override; |
73 uint32_t GetBackgroundColor() override; | 74 uint32_t GetBackgroundColor() override; |
74 | 75 |
75 private: | 76 private: |
76 Client* const client_; | 77 Client* const client_; |
77 }; | 78 }; |
78 | 79 |
79 } // namespace chrome_pdf | 80 } // namespace chrome_pdf |
80 | 81 |
81 #endif // PDF_PREVIEW_MODE_CLIENT_H_ | 82 #endif // PDF_PREVIEW_MODE_CLIENT_H_ |
OLD | NEW |