OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 Response GetNavigationHistory( | 70 Response GetNavigationHistory( |
71 int* current_index, | 71 int* current_index, |
72 std::unique_ptr<NavigationEntries>* entries) override; | 72 std::unique_ptr<NavigationEntries>* entries) override; |
73 Response NavigateToHistoryEntry(int entry_id) override; | 73 Response NavigateToHistoryEntry(int entry_id) override; |
74 | 74 |
75 void CaptureScreenshot( | 75 void CaptureScreenshot( |
76 Maybe<std::string> format, | 76 Maybe<std::string> format, |
77 Maybe<int> quality, | 77 Maybe<int> quality, |
78 Maybe<bool> from_surface, | 78 Maybe<bool> from_surface, |
79 std::unique_ptr<CaptureScreenshotCallback> callback) override; | 79 std::unique_ptr<CaptureScreenshotCallback> callback) override; |
80 void PrintToPDF(std::unique_ptr<PrintToPDFCallback> callback) override; | 80 void PrintToPDF(Maybe<bool> landscape, |
| 81 Maybe<bool> display_header_footer, |
| 82 Maybe<bool> print_background, |
| 83 Maybe<double> scale, |
| 84 Maybe<double> paper_width, |
| 85 Maybe<double> paper_height, |
| 86 Maybe<double> margin_top, |
| 87 Maybe<double> margin_bottom, |
| 88 Maybe<double> margin_left, |
| 89 Maybe<double> margin_right, |
| 90 Maybe<String> page_ranges, |
| 91 std::unique_ptr<PrintToPDFCallback> callback) override; |
81 Response StartScreencast(Maybe<std::string> format, | 92 Response StartScreencast(Maybe<std::string> format, |
82 Maybe<int> quality, | 93 Maybe<int> quality, |
83 Maybe<int> max_width, | 94 Maybe<int> max_width, |
84 Maybe<int> max_height, | 95 Maybe<int> max_height, |
85 Maybe<int> every_nth_frame) override; | 96 Maybe<int> every_nth_frame) override; |
86 Response StopScreencast() override; | 97 Response StopScreencast() override; |
87 Response ScreencastFrameAck(int session_id) override; | 98 Response ScreencastFrameAck(int session_id) override; |
88 | 99 |
89 Response HandleJavaScriptDialog(bool accept, | 100 Response HandleJavaScriptDialog(bool accept, |
90 Maybe<std::string> prompt_text) override; | 101 Maybe<std::string> prompt_text) override; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 NotificationRegistrar registrar_; | 160 NotificationRegistrar registrar_; |
150 base::WeakPtrFactory<PageHandler> weak_factory_; | 161 base::WeakPtrFactory<PageHandler> weak_factory_; |
151 | 162 |
152 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 163 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
153 }; | 164 }; |
154 | 165 |
155 } // namespace protocol | 166 } // namespace protocol |
156 } // namespace content | 167 } // namespace content |
157 | 168 |
158 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 169 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
OLD | NEW |