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

Side by Side Diff: content/browser/devtools/protocol/page_handler.h

Issue 603323004: DevTools: Add geolocation override in browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Fix in PauseOrResume Created 6 years, 2 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 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698