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

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

Issue 306053010: Tried using CrossThreadPersistent for workerDebuggerAgents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 27 matching lines...) Expand all
38 38
39 namespace WebCore { 39 namespace WebCore {
40 class InspectorClient; 40 class InspectorClient;
41 class Page; 41 class Page;
42 42
43 typedef String ErrorString; 43 typedef String ErrorString;
44 44
45 class InspectorInputAgent FINAL : public InspectorBaseAgent<InspectorInputAgent> , public InspectorBackendDispatcher::InputCommandHandler { 45 class InspectorInputAgent FINAL : public InspectorBaseAgent<InspectorInputAgent> , public InspectorBackendDispatcher::InputCommandHandler {
46 WTF_MAKE_NONCOPYABLE(InspectorInputAgent); 46 WTF_MAKE_NONCOPYABLE(InspectorInputAgent);
47 public: 47 public:
48 static PassOwnPtr<InspectorInputAgent> create(Page* page, InspectorClient* c lient) 48 static PassOwnPtrWillBeRawPtr<InspectorInputAgent> create(Page* page, Inspec torClient* client)
49 { 49 {
50 return adoptPtr(new InspectorInputAgent(page, client)); 50 return adoptPtrWillBeNoop(new InspectorInputAgent(page, client));
51 } 51 }
52 52
53 virtual ~InspectorInputAgent(); 53 virtual ~InspectorInputAgent();
54 virtual void trace(Visitor*) OVERRIDE;
54 55
55 // Methods called from the frontend for simulating input. 56 // Methods called from the frontend for simulating input.
56 virtual void dispatchKeyEvent(ErrorString*, const String& type, const int* m odifiers, const double* timestamp, const String* text, const String* unmodifiedT ext, const String* keyIdentifier, const int* windowsVirtualKeyCode, const int* n ativeVirtualKeyCode, const bool* autoRepeat, const bool* isKeypad, const bool* i sSystemKey) OVERRIDE; 57 virtual void dispatchKeyEvent(ErrorString*, const String& type, const int* m odifiers, const double* timestamp, const String* text, const String* unmodifiedT ext, const String* keyIdentifier, const int* windowsVirtualKeyCode, const int* n ativeVirtualKeyCode, const bool* autoRepeat, const bool* isKeypad, const bool* i sSystemKey) OVERRIDE;
57 virtual void dispatchMouseEvent(ErrorString*, const String& type, int x, int y, const int* modifiers, const double* timestamp, const String* button, const i nt* clickCount, const bool* deviceSpace) OVERRIDE; 58 virtual void dispatchMouseEvent(ErrorString*, const String& type, int x, int y, const int* modifiers, const double* timestamp, const String* button, const i nt* clickCount, const bool* deviceSpace) OVERRIDE;
58 virtual void dispatchTouchEvent(ErrorString*, const String& type, const RefP tr<JSONArray>& touchPoints, const int* modifiers, const double* timestamp) OVERR IDE; 59 virtual void dispatchTouchEvent(ErrorString*, const String& type, const RefP tr<JSONArray>& touchPoints, const int* modifiers, const double* timestamp) OVERR IDE;
59 private: 60 private:
60 InspectorInputAgent(Page*, InspectorClient*); 61 InspectorInputAgent(Page*, InspectorClient*);
61 62
62 Page* m_page; 63 RawPtrWillBeMember<Page> m_page;
63 InspectorClient* m_client; 64 InspectorClient* m_client;
64 }; 65 };
65 66
66 67
67 } // namespace WebCore 68 } // namespace WebCore
68 69
69 #endif // !defined(InspectorInputAgent_h) 70 #endif // !defined(InspectorInputAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorHistory.cpp ('k') | Source/core/inspector/InspectorInputAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698