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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorInputAgent.h

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 2 Created 4 years, 9 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
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
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 typedef String ErrorString;
46
47 class CORE_EXPORT InspectorInputAgent final : public InspectorBaseAgent<Inspecto rInputAgent, protocol::Frontend::Input>, public protocol::Dispatcher::InputComma ndHandler { 45 class CORE_EXPORT InspectorInputAgent final : public InspectorBaseAgent<Inspecto rInputAgent, protocol::Frontend::Input>, public protocol::Dispatcher::InputComma ndHandler {
48 WTF_MAKE_NONCOPYABLE(InspectorInputAgent); 46 WTF_MAKE_NONCOPYABLE(InspectorInputAgent);
49 public: 47 public:
50 static PassOwnPtrWillBeRawPtr<InspectorInputAgent> create(InspectedFrames* i nspectedFrames) 48 static PassOwnPtrWillBeRawPtr<InspectorInputAgent> create(InspectedFrames* i nspectedFrames)
51 { 49 {
52 return adoptPtrWillBeNoop(new InspectorInputAgent(inspectedFrames)); 50 return adoptPtrWillBeNoop(new InspectorInputAgent(inspectedFrames));
53 } 51 }
54 52
55 ~InspectorInputAgent() override; 53 ~InspectorInputAgent() override;
56 DECLARE_VIRTUAL_TRACE(); 54 DECLARE_VIRTUAL_TRACE();
57 55
58 // Methods called from the frontend for simulating input. 56 // Methods called from the frontend for simulating input.
59 void dispatchTouchEvent(ErrorString*, const String& type, PassOwnPtr<protoco l::Array<protocol::Input::TouchPoint>> touchPoints, const Maybe<int>& modifiers, const Maybe<double>& timestamp) override; 57 void dispatchTouchEvent(ErrorString*, const String& type, PassOwnPtr<protoco l::Array<protocol::Input::TouchPoint>> touchPoints, const Maybe<int>& modifiers, const Maybe<double>& timestamp) override;
60 private: 58 private:
61 explicit InspectorInputAgent(InspectedFrames*); 59 explicit InspectorInputAgent(InspectedFrames*);
62 60
63 RawPtrWillBeMember<InspectedFrames> m_inspectedFrames; 61 RawPtrWillBeMember<InspectedFrames> m_inspectedFrames;
64 }; 62 };
65 63
66 64
67 } // namespace blink 65 } // namespace blink
68 66
69 #endif // !defined(InspectorInputAgent_h) 67 #endif // !defined(InspectorInputAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698