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

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

Issue 2478703002: [DevTools] Remove handlers = browser from protocol definition. (Closed)
Patch Set: fixes Created 4 years, 1 month 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_INPUT_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" 10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const int* repeat_delay_ms, 91 const int* repeat_delay_ms,
92 const std::string* interaction_marker_name); 92 const std::string* interaction_marker_name);
93 93
94 Response SynthesizeTapGesture(DevToolsCommandId command_id, 94 Response SynthesizeTapGesture(DevToolsCommandId command_id,
95 int x, 95 int x,
96 int y, 96 int y,
97 const int* duration, 97 const int* duration,
98 const int* tap_count, 98 const int* tap_count,
99 const std::string* gesture_source_type); 99 const std::string* gesture_source_type);
100 100
101 Response DispatchTouchEvent(
102 const std::string& type,
103 const std::vector<std::unique_ptr<base::DictionaryValue>>& touch_points,
104 const int* modifiers,
105 const double* timestamp);
106
101 private: 107 private:
102 void SendSynthesizePinchGestureResponse(DevToolsCommandId command_id, 108 void SendSynthesizePinchGestureResponse(DevToolsCommandId command_id,
103 SyntheticGesture::Result result); 109 SyntheticGesture::Result result);
104 110
105 void SendSynthesizeScrollGestureResponse(DevToolsCommandId command_id, 111 void SendSynthesizeScrollGestureResponse(DevToolsCommandId command_id,
106 SyntheticGesture::Result result); 112 SyntheticGesture::Result result);
107 113
108 void SendSynthesizeTapGestureResponse(DevToolsCommandId command_id, 114 void SendSynthesizeTapGestureResponse(DevToolsCommandId command_id,
109 bool send_success, 115 bool send_success,
110 SyntheticGesture::Result result); 116 SyntheticGesture::Result result);
(...skipping 19 matching lines...) Expand all
130 base::WeakPtrFactory<InputHandler> weak_factory_; 136 base::WeakPtrFactory<InputHandler> weak_factory_;
131 137
132 DISALLOW_COPY_AND_ASSIGN(InputHandler); 138 DISALLOW_COPY_AND_ASSIGN(InputHandler);
133 }; 139 };
134 140
135 } // namespace input 141 } // namespace input
136 } // namespace devtools 142 } // namespace devtools
137 } // namespace content 143 } // namespace content
138 144
139 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ 145 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/emulation_handler.cc ('k') | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698