| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "core/inspector/InspectorBaseAgent.h" | 35 #include "core/inspector/InspectorBaseAgent.h" |
| 36 #include "wtf/Noncopyable.h" | 36 #include "wtf/Noncopyable.h" |
| 37 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
| 38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 class InspectedFrames; | 41 class InspectedFrames; |
| 42 class PlatformKeyboardEvent; | 42 class PlatformKeyboardEvent; |
| 43 class PlatformMouseEvent; | 43 class PlatformMouseEvent; |
| 44 | 44 |
| 45 class CORE_EXPORT InspectorInputAgent final : public InspectorBaseAgent<Inspecto
rInputAgent, protocol::Input::Frontend>, public protocol::Input::Backend { | 45 class CORE_EXPORT InspectorInputAgent final : public InspectorBaseAgent<protocol
::Input::Metainfo> { |
| 46 WTF_MAKE_NONCOPYABLE(InspectorInputAgent); | 46 WTF_MAKE_NONCOPYABLE(InspectorInputAgent); |
| 47 public: | 47 public: |
| 48 static InspectorInputAgent* create(InspectedFrames* inspectedFrames) | 48 static InspectorInputAgent* create(InspectedFrames* inspectedFrames) |
| 49 { | 49 { |
| 50 return new InspectorInputAgent(inspectedFrames); | 50 return new InspectorInputAgent(inspectedFrames); |
| 51 } | 51 } |
| 52 | 52 |
| 53 ~InspectorInputAgent() override; | 53 ~InspectorInputAgent() override; |
| 54 DECLARE_VIRTUAL_TRACE(); | 54 DECLARE_VIRTUAL_TRACE(); |
| 55 | 55 |
| 56 // Methods called from the frontend for simulating input. | 56 // Methods called from the frontend for simulating input. |
| 57 void dispatchTouchEvent(ErrorString*, const String& type, std::unique_ptr<pr
otocol::Array<protocol::Input::TouchPoint>> touchPoints, const Maybe<int>& modif
iers, const Maybe<double>& timestamp) override; | 57 void dispatchTouchEvent(ErrorString*, const String& type, std::unique_ptr<pr
otocol::Array<protocol::Input::TouchPoint>> touchPoints, const Maybe<int>& modif
iers, const Maybe<double>& timestamp) override; |
| 58 private: | 58 private: |
| 59 explicit InspectorInputAgent(InspectedFrames*); | 59 explicit InspectorInputAgent(InspectedFrames*); |
| 60 | 60 |
| 61 Member<InspectedFrames> m_inspectedFrames; | 61 Member<InspectedFrames> m_inspectedFrames; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 | 64 |
| 65 } // namespace blink | 65 } // namespace blink |
| 66 | 66 |
| 67 #endif // !defined(InspectorInputAgent_h) | 67 #endif // !defined(InspectorInputAgent_h) |
| OLD | NEW |