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 "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "content/browser/devtools/protocol/devtools_protocol_handler_impl.h" | 9 #include "content/browser/devtools/protocol/devtools_protocol_handler_impl.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 Response Reload(const bool* ignoreCache, | 31 Response Reload(const bool* ignoreCache, |
32 const std::string* script_to_evaluate_on_load, | 32 const std::string* script_to_evaluate_on_load, |
33 const std::string* script_preprocessor); | 33 const std::string* script_preprocessor); |
34 | 34 |
35 Response Navigate(const std::string& url, FrameId* frame_id); | 35 Response Navigate(const std::string& url, FrameId* frame_id); |
36 | 36 |
37 Response GetNavigationHistory(int* current_index, | 37 Response GetNavigationHistory(int* current_index, |
38 std::vector<NavigationEntry>* entries); | 38 std::vector<NavigationEntry>* entries); |
39 | 39 |
40 Response NavigateToHistoryEntry(int entry_id); | 40 Response NavigateToHistoryEntry(int entry_id); |
| 41 |
| 42 Response SetGeolocationOverride(double* latitude, |
| 43 double* longitude, |
| 44 double* accuracy); |
| 45 |
| 46 Response ClearGeolocationOverride(); |
| 47 |
41 Response SetTouchEmulationEnabled(bool enabled); | 48 Response SetTouchEmulationEnabled(bool enabled); |
42 | 49 |
43 scoped_refptr<DevToolsProtocol::Response> CaptureScreenshot( | 50 scoped_refptr<DevToolsProtocol::Response> CaptureScreenshot( |
44 scoped_refptr<DevToolsProtocol::Command> command); | 51 scoped_refptr<DevToolsProtocol::Command> command); |
45 | 52 |
46 Response CanScreencast(bool* result); | 53 Response CanScreencast(bool* result); |
47 Response CanEmulate(bool* result); | 54 Response CanEmulate(bool* result); |
48 | 55 |
49 Response StartScreencast(const std::string* format, | 56 Response StartScreencast(const std::string* format, |
50 const int* quality, | 57 const int* quality, |
(...skipping 20 matching lines...) Expand all Loading... |
71 size_t png_size); | 78 size_t png_size); |
72 | 79 |
73 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 80 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
74 }; | 81 }; |
75 | 82 |
76 } // namespace page | 83 } // namespace page |
77 } // namespace devtools | 84 } // namespace devtools |
78 } // namespace content | 85 } // namespace content |
79 | 86 |
80 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 87 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
OLD | NEW |