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

Unified Diff: content/browser/devtools/protocol/input_handler.h

Issue 2898793002: DevTools: disable input event processing while auditing with lighthouse. (Closed)
Patch Set: comments addressed Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/input_handler.h
diff --git a/content/browser/devtools/protocol/input_handler.h b/content/browser/devtools/protocol/input_handler.h
index 0624d20dff54f8e08274b552d0b640b57d85f78e..50d2612466141096059037b457a11bbf29fa9561 100644
--- a/content/browser/devtools/protocol/input_handler.h
+++ b/content/browser/devtools/protocol/input_handler.h
@@ -75,6 +75,8 @@ class InputHandler : public DevToolsDomainHandler,
Maybe<int> modifiers,
Maybe<int> click_count) override;
+ Response SetIgnoreInputEvents(bool ignore) override;
+
void SynthesizePinchGesture(
int x,
int y,
@@ -141,6 +143,7 @@ class InputHandler : public DevToolsDomainHandler,
float page_scale_factor_;
gfx::SizeF scrollable_viewport_size_;
int last_id_;
+ bool ignore_input_events_ = false;
base::WeakPtrFactory<InputHandler> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(InputHandler);
« no previous file with comments | « no previous file | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698