| 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/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 Response Reload(const bool* ignoreCache, | 44 Response Reload(const bool* ignoreCache, |
| 45 const std::string* script_to_evaluate_on_load, | 45 const std::string* script_to_evaluate_on_load, |
| 46 const std::string* script_preprocessor); | 46 const std::string* script_preprocessor); |
| 47 | 47 |
| 48 Response Navigate(const std::string& url, FrameId* frame_id); | 48 Response Navigate(const std::string& url, FrameId* frame_id); |
| 49 | 49 |
| 50 Response GetNavigationHistory(int* current_index, | 50 Response GetNavigationHistory(int* current_index, |
| 51 std::vector<NavigationEntry>* entries); | 51 std::vector<NavigationEntry>* entries); |
| 52 | 52 |
| 53 Response NavigateToHistoryEntry(int entry_id); | 53 Response NavigateToHistoryEntry(int entry_id); |
| 54 |
| 55 Response SetGeolocationOverride(double* latitude, |
| 56 double* longitude, |
| 57 double* accuracy); |
| 58 |
| 59 Response ClearGeolocationOverride(); |
| 60 |
| 54 Response SetTouchEmulationEnabled(bool enabled); | 61 Response SetTouchEmulationEnabled(bool enabled); |
| 55 | 62 |
| 56 scoped_refptr<DevToolsProtocol::Response> CaptureScreenshot( | 63 scoped_refptr<DevToolsProtocol::Response> CaptureScreenshot( |
| 57 scoped_refptr<DevToolsProtocol::Command> command); | 64 scoped_refptr<DevToolsProtocol::Command> command); |
| 58 | 65 |
| 59 Response CanScreencast(bool* result); | 66 Response CanScreencast(bool* result); |
| 60 Response CanEmulate(bool* result); | 67 Response CanEmulate(bool* result); |
| 61 | 68 |
| 62 Response StartScreencast(const std::string* format, | 69 Response StartScreencast(const std::string* format, |
| 63 const int* quality, | 70 const int* quality, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 base::WeakPtrFactory<PageHandler> weak_factory_; | 119 base::WeakPtrFactory<PageHandler> weak_factory_; |
| 113 | 120 |
| 114 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 121 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
| 115 }; | 122 }; |
| 116 | 123 |
| 117 } // namespace page | 124 } // namespace page |
| 118 } // namespace devtools | 125 } // namespace devtools |
| 119 } // namespace content | 126 } // namespace content |
| 120 | 127 |
| 121 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 128 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
| OLD | NEW |