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

Side by Side Diff: pdf/preview_mode_client.h

Issue 2166193002: Handle ctrl + shift + left click on links in PDF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle ctrl + shift + left click on links in PDF. Created 4 years, 5 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) 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
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,
37 WindowOpenDisposition disposition) override;
37 void UpdateCursor(PP_CursorType_Dev cursor) override; 38 void UpdateCursor(PP_CursorType_Dev cursor) override;
38 void UpdateTickMarks(const std::vector<pp::Rect>& tickmarks) override; 39 void UpdateTickMarks(const std::vector<pp::Rect>& tickmarks) override;
39 void NotifyNumberOfFindResultsChanged(int total, bool final_result) override; 40 void NotifyNumberOfFindResultsChanged(int total, bool final_result) override;
40 void NotifySelectedFindResultChanged(int current_find_index) override; 41 void NotifySelectedFindResultChanged(int current_find_index) override;
41 void GetDocumentPassword( 42 void GetDocumentPassword(
42 pp::CompletionCallbackWithOutput<pp::Var> callback) override; 43 pp::CompletionCallbackWithOutput<pp::Var> callback) override;
43 void Alert(const std::string& message) override; 44 void Alert(const std::string& message) override;
44 bool Confirm(const std::string& message) override; 45 bool Confirm(const std::string& message) override;
45 std::string Prompt(const std::string& question, 46 std::string Prompt(const std::string& question,
46 const std::string& default_answer) override; 47 const std::string& default_answer) override;
(...skipping 24 matching lines...) Expand all
71 bool IsPrintPreview() override; 72 bool IsPrintPreview() override;
72 uint32_t GetBackgroundColor() override; 73 uint32_t GetBackgroundColor() override;
73 74
74 private: 75 private:
75 Client* const client_; 76 Client* const client_;
76 }; 77 };
77 78
78 } // namespace chrome_pdf 79 } // namespace chrome_pdf
79 80
80 #endif // PDF_PREVIEW_MODE_CLIENT_H_ 81 #endif // PDF_PREVIEW_MODE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698