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

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: 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 Response SetGeolocationOverride(double* latitude,
dgozman 2014/10/06 11:03:26 nit: either retain empty lines between methods or
vkuzkokov 2014/10/06 13:48:20 Done.
42 double* longitude,
43 double* accuracy);
44 Response ClearGeolocationOverride();
41 Response SetTouchEmulationEnabled(bool enabled); 45 Response SetTouchEmulationEnabled(bool enabled);
42 46
43 scoped_refptr<DevToolsProtocol::Response> CaptureScreenshot( 47 scoped_refptr<DevToolsProtocol::Response> CaptureScreenshot(
44 scoped_refptr<DevToolsProtocol::Command> command); 48 scoped_refptr<DevToolsProtocol::Command> command);
45 49
46 Response CanScreencast(bool* result); 50 Response CanScreencast(bool* result);
47 Response CanEmulate(bool* result); 51 Response CanEmulate(bool* result);
48 52
49 Response StartScreencast(const std::string* format, 53 Response StartScreencast(const std::string* format,
50 const int* quality, 54 const int* quality,
(...skipping 20 matching lines...) Expand all
71 size_t png_size); 75 size_t png_size);
72 76
73 DISALLOW_COPY_AND_ASSIGN(PageHandler); 77 DISALLOW_COPY_AND_ASSIGN(PageHandler);
74 }; 78 };
75 79
76 } // namespace page 80 } // namespace page
77 } // namespace devtools 81 } // namespace devtools
78 } // namespace content 82 } // namespace content
79 83
80 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ 84 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/protocol/page_handler.cc » ('j') | content/browser/devtools/protocol/page_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698