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 15 matching lines...) Expand all Loading... |
26 explicit PreviewModeClient(Client* client); | 26 explicit PreviewModeClient(Client* client); |
27 ~PreviewModeClient() override {} | 27 ~PreviewModeClient() override {} |
28 | 28 |
29 // PDFEngine::Client implementation. | 29 // PDFEngine::Client implementation. |
30 void DocumentSizeUpdated(const pp::Size& size) override; | 30 void DocumentSizeUpdated(const pp::Size& size) override; |
31 void Invalidate(const pp::Rect& rect) override; | 31 void Invalidate(const pp::Rect& rect) override; |
32 void Scroll(const pp::Point& point) override; | 32 void Scroll(const pp::Point& point) override; |
33 void ScrollToX(int position) override; | 33 void ScrollToX(int position) override; |
34 void ScrollToY(int position) override; | 34 void ScrollToY(int position) override; |
35 void ScrollToPage(int page) override; | 35 void ScrollToPage(int page) override; |
36 void NavigateTo(const std::string& url, bool open_in_new_tab) override; | 36 void NavigateTo(const std::string& url, int option) override; |
37 void UpdateCursor(PP_CursorType_Dev cursor) override; | 37 void UpdateCursor(PP_CursorType_Dev cursor) override; |
38 void UpdateTickMarks(const std::vector<pp::Rect>& tickmarks) override; | 38 void UpdateTickMarks(const std::vector<pp::Rect>& tickmarks) override; |
39 void NotifyNumberOfFindResultsChanged(int total, bool final_result) override; | 39 void NotifyNumberOfFindResultsChanged(int total, bool final_result) override; |
40 void NotifySelectedFindResultChanged(int current_find_index) override; | 40 void NotifySelectedFindResultChanged(int current_find_index) override; |
41 void GetDocumentPassword( | 41 void GetDocumentPassword( |
42 pp::CompletionCallbackWithOutput<pp::Var> callback) override; | 42 pp::CompletionCallbackWithOutput<pp::Var> callback) override; |
43 void Alert(const std::string& message) override; | 43 void Alert(const std::string& message) override; |
44 bool Confirm(const std::string& message) override; | 44 bool Confirm(const std::string& message) override; |
45 std::string Prompt(const std::string& question, | 45 std::string Prompt(const std::string& question, |
46 const std::string& default_answer) override; | 46 const std::string& default_answer) override; |
(...skipping 24 matching lines...) Expand all Loading... |
71 bool IsPrintPreview() override; | 71 bool IsPrintPreview() override; |
72 uint32_t GetBackgroundColor() override; | 72 uint32_t GetBackgroundColor() override; |
73 | 73 |
74 private: | 74 private: |
75 Client* const client_; | 75 Client* const client_; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace chrome_pdf | 78 } // namespace chrome_pdf |
79 | 79 |
80 #endif // PDF_PREVIEW_MODE_CLIENT_H_ | 80 #endif // PDF_PREVIEW_MODE_CLIENT_H_ |
OLD | NEW |