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

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

Issue 508973003: DevTools: Protocol handler generator for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/browser/devtools/protocol/page_handler.h"
6
7 namespace content {
8 namespace devtools {
9 namespace page {
10
11 typedef DevToolsProtocolFrontend::Response Response;
12
13 PageHandler::PageHandler() {
14 }
15
16 PageHandler::~PageHandler() {
17 }
18
19 void PageHandler::OnClientDetached() {
20 }
21
22 void PageHandler::SetRenderViewHost(RenderViewHostImpl* host) {
23 }
24
25 void PageHandler::SetFrontend(scoped_ptr<Frontend> frontend) {
26 frontend_.swap(frontend);
27 }
28
29 Response PageHandler::Enable() {
30 return Response::FallThrough();
31 }
32
33 Response PageHandler::Disable() {
34 return Response::FallThrough();
35 }
36
37 Response PageHandler::Reload(const bool* ignoreCache,
38 const std::string* script_to_evaluate_on_load,
39 const std::string* script_preprocessor) {
40 return Response::FallThrough();
41 }
42
43 Response PageHandler::Navigate(const std::string& url,
44 FrameId* frame_id) {
45 return Response::FallThrough();
46 }
47
48 Response PageHandler::GetNavigationHistory(
49 int* current_index,
50 std::vector<NavigationEntry>* entries) {
51 return Response::FallThrough();
52 }
53
54 Response PageHandler::NavigateToHistoryEntry(int entry_id) {
55 return Response::FallThrough();
56 }
57
58 Response PageHandler::SetTouchEmulationEnabled(bool enabled) {
59 return Response::FallThrough();
60 }
61
62 scoped_refptr<DevToolsProtocol::Response> PageHandler::CaptureScreenshot(
63 scoped_refptr<DevToolsProtocol::Command> command) {
64 return NULL;
65 }
66
67 Response PageHandler::CanScreencast(bool* result) {
68 return Response::FallThrough();
69 }
70
71 Response PageHandler::CanEmulate(bool* result) {
72 return Response::FallThrough();
73 }
74
75 Response PageHandler::StartScreencast(const std::string* format,
76 const int* quality,
77 const int* max_width,
78 const int* max_height) {
79 return Response::FallThrough();
80 }
81
82 Response PageHandler::StopScreencast() {
83 return Response::FallThrough();
84 }
85
86 Response PageHandler::HandleJavaScriptDialog(bool accept,
87 const std::string* prompt_text) {
88 return Response::FallThrough();
89 }
90
91 scoped_refptr<DevToolsProtocol::Response> PageHandler::QueryUsageAndQuota(
92 const std::string& security_origin,
93 scoped_refptr<DevToolsProtocol::Command> command) {
94 return NULL;
95 }
96
97 Response PageHandler::SetColorPickerEnabled(bool enabled) {
98 return Response::FallThrough();
99 }
100
101 } // namespace page
102 } // namespace devtools
103 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698