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

Side by Side Diff: pdf/pdf_engine.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) 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_PDF_ENGINE_H_ 5 #ifndef PDF_PDF_ENGINE_H_
6 #define PDF_PDF_ENGINE_H_ 6 #define PDF_PDF_ENGINE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 11
12 #if defined(OS_WIN) 12 #if defined(OS_WIN)
13 #include <windows.h> 13 #include <windows.h>
14 #endif 14 #endif
15 15
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "base/strings/string16.h" 19 #include "base/strings/string16.h"
20 20
21 #include "ppapi/c/dev/pp_cursor_type_dev.h" 21 #include "ppapi/c/dev/pp_cursor_type_dev.h"
22 #include "ppapi/c/dev/ppp_printing_dev.h" 22 #include "ppapi/c/dev/ppp_printing_dev.h"
23 #include "ppapi/c/ppb_input_event.h" 23 #include "ppapi/c/ppb_input_event.h"
24 #include "ppapi/cpp/completion_callback.h" 24 #include "ppapi/cpp/completion_callback.h"
25 #include "ppapi/cpp/image_data.h" 25 #include "ppapi/cpp/image_data.h"
26 #include "ppapi/cpp/rect.h" 26 #include "ppapi/cpp/rect.h"
27 #include "ppapi/cpp/size.h" 27 #include "ppapi/cpp/size.h"
28 #include "ppapi/cpp/url_loader.h" 28 #include "ppapi/cpp/url_loader.h"
29 #include "ppapi/cpp/var_array.h" 29 #include "ppapi/cpp/var_array.h"
30 #include "ui/base/window_open_disposition.h"
30 31
31 namespace pp { 32 namespace pp {
32 class InputEvent; 33 class InputEvent;
33 class VarDictionary; 34 class VarDictionary;
34 } 35 }
35 36
36 namespace chrome_pdf { 37 namespace chrome_pdf {
37 38
38 class Stream; 39 class Stream;
39 40
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void Scroll(const pp::Point& point) = 0; 74 virtual void Scroll(const pp::Point& point) = 0;
74 75
75 // Scroll the horizontal/vertical scrollbars to a given position. 76 // Scroll the horizontal/vertical scrollbars to a given position.
76 virtual void ScrollToX(int position) = 0; 77 virtual void ScrollToX(int position) = 0;
77 virtual void ScrollToY(int position) = 0; 78 virtual void ScrollToY(int position) = 0;
78 79
79 // Scroll to the specified page. 80 // Scroll to the specified page.
80 virtual void ScrollToPage(int page) = 0; 81 virtual void ScrollToPage(int page) = 0;
81 82
82 // Navigate to the given url. 83 // Navigate to the given url.
83 virtual void NavigateTo(const std::string& url, bool open_in_new_tab) = 0; 84 virtual void NavigateTo(const std::string& url,
85 WindowOpenDisposition disposition) = 0;
84 86
85 // Updates the cursor. 87 // Updates the cursor.
86 virtual void UpdateCursor(PP_CursorType_Dev cursor) = 0; 88 virtual void UpdateCursor(PP_CursorType_Dev cursor) = 0;
87 89
88 // Updates the tick marks in the vertical scrollbar. 90 // Updates the tick marks in the vertical scrollbar.
89 virtual void UpdateTickMarks(const std::vector<pp::Rect>& tickmarks) = 0; 91 virtual void UpdateTickMarks(const std::vector<pp::Rect>& tickmarks) = 0;
90 92
91 // Updates the number of find results for the current search term. If 93 // Updates the number of find results for the current search term. If
92 // there are no matches 0 should be passed in. Only when the plugin has 94 // there are no matches 0 should be passed in. Only when the plugin has
93 // finished searching should it pass in the final count with final_result 95 // finished searching should it pass in the final count with final_result
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 352
351 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 353 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
352 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 354 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
353 int pdf_buffer_size, int page_number, 355 int pdf_buffer_size, int page_number,
354 double* width, double* height) = 0; 356 double* width, double* height) = 0;
355 }; 357 };
356 358
357 } // namespace chrome_pdf 359 } // namespace chrome_pdf
358 360
359 #endif // PDF_PDF_ENGINE_H_ 361 #endif // PDF_PDF_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698