Chromium Code Reviews| Index: third_party/WebKit/Source/core/inspector/InspectorInputAgent.h |
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorInputAgent.h b/third_party/WebKit/Source/core/inspector/InspectorInputAgent.h |
| index a14c89f57de804d03283864f4bfb46a22487c808..7e891a731d0d283948d07df4b7929da16bdf44b3 100644 |
| --- a/third_party/WebKit/Source/core/inspector/InspectorInputAgent.h |
| +++ b/third_party/WebKit/Source/core/inspector/InspectorInputAgent.h |
| @@ -38,9 +38,12 @@ |
| #include "wtf/text/WTFString.h" |
| namespace blink { |
| +class ExecutionContext; |
| +class Event; |
| class InspectedFrames; |
| class PlatformKeyboardEvent; |
| class PlatformMouseEvent; |
| +class RegisteredEventListener; |
| class CORE_EXPORT InspectorInputAgent final : public InspectorBaseAgent<InspectorInputAgent, protocol::Frontend::Input>, public protocol::Backend::Input { |
| WTF_MAKE_NONCOPYABLE(InspectorInputAgent); |
| @@ -53,15 +56,29 @@ public: |
| ~InspectorInputAgent() override; |
| DECLARE_VIRTUAL_TRACE(); |
| - // Methods called from the frontend for simulating input. |
| + // InspectorBaseAgent overrides |
| + void restore() override; |
| + void disable(ErrorString*) override; |
| + |
| + // Protocol implementation. |
| void dispatchTouchEvent(ErrorString*, const String& type, PassOwnPtr<protocol::Array<protocol::Input::TouchPoint>> touchPoints, const Maybe<int>& modifiers, const Maybe<double>& timestamp) override; |
| + void setBlockedEventsWarningThreshold(ErrorString*, double threshold) override; |
| + |
| + // InspectorInstrumentation method(s). |
| + void reportBlockedEvent(ExecutionContext*, Event*, RegisteredEventListener*, double delayedSeconds); |
|
dtapuska
2016/05/04 17:46:09
I think Event can be const.
|
| + |
| + // InpsectorOverrides method(s). |
| + bool shouldReportBlockedEvent(const Event*); |
| + |
| private: |
| explicit InspectorInputAgent(InspectedFrames*); |
| + void setEnabled(bool); |
| + |
| Member<InspectedFrames> m_inspectedFrames; |
| + double m_blockedEventsWarningThreshold; |
| }; |
| - |
| } // namespace blink |
| #endif // !defined(InspectorInputAgent_h) |