| 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 "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 using NavigationEntries = protocol::Array<Page::NavigationEntry>; | 65 using NavigationEntries = protocol::Array<Page::NavigationEntry>; |
| 66 Response GetNavigationHistory( | 66 Response GetNavigationHistory( |
| 67 int* current_index, | 67 int* current_index, |
| 68 std::unique_ptr<NavigationEntries>* entries) override; | 68 std::unique_ptr<NavigationEntries>* entries) override; |
| 69 Response NavigateToHistoryEntry(int entry_id) override; | 69 Response NavigateToHistoryEntry(int entry_id) override; |
| 70 | 70 |
| 71 void CaptureScreenshot( | 71 void CaptureScreenshot( |
| 72 Maybe<std::string> format, | 72 Maybe<std::string> format, |
| 73 Maybe<int> quality, | 73 Maybe<int> quality, |
| 74 std::unique_ptr<CaptureScreenshotCallback> callback) override; | 74 std::unique_ptr<CaptureScreenshotCallback> callback) override; |
| 75 void PrintToPDF(std::unique_ptr<PrintToPDFCallback> callback) override; |
| 75 Response StartScreencast(Maybe<std::string> format, | 76 Response StartScreencast(Maybe<std::string> format, |
| 76 Maybe<int> quality, | 77 Maybe<int> quality, |
| 77 Maybe<int> max_width, | 78 Maybe<int> max_width, |
| 78 Maybe<int> max_height, | 79 Maybe<int> max_height, |
| 79 Maybe<int> every_nth_frame) override; | 80 Maybe<int> every_nth_frame) override; |
| 80 Response StopScreencast() override; | 81 Response StopScreencast() override; |
| 81 Response ScreencastFrameAck(int session_id) override; | 82 Response ScreencastFrameAck(int session_id) override; |
| 82 | 83 |
| 83 Response HandleJavaScriptDialog(bool accept, | 84 Response HandleJavaScriptDialog(bool accept, |
| 84 Maybe<std::string> prompt_text) override; | 85 Maybe<std::string> prompt_text) override; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 NotificationRegistrar registrar_; | 149 NotificationRegistrar registrar_; |
| 149 base::WeakPtrFactory<PageHandler> weak_factory_; | 150 base::WeakPtrFactory<PageHandler> weak_factory_; |
| 150 | 151 |
| 151 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 152 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 } // namespace protocol | 155 } // namespace protocol |
| 155 } // namespace content | 156 } // namespace content |
| 156 | 157 |
| 157 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 158 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
| OLD | NEW |