| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 public: | 47 public: |
| 48 static PassOwnPtrWillBeRawPtr<InspectorInputAgent> create(InspectorPageAgent
* pageAgent, InspectorClient* client) | 48 static PassOwnPtrWillBeRawPtr<InspectorInputAgent> create(InspectorPageAgent
* pageAgent, InspectorClient* client) |
| 49 { | 49 { |
| 50 return adoptPtrWillBeNoop(new InspectorInputAgent(pageAgent, client)); | 50 return adoptPtrWillBeNoop(new InspectorInputAgent(pageAgent, client)); |
| 51 } | 51 } |
| 52 | 52 |
| 53 virtual ~InspectorInputAgent(); | 53 virtual ~InspectorInputAgent(); |
| 54 virtual void trace(Visitor*) override; | 54 virtual void trace(Visitor*) override; |
| 55 | 55 |
| 56 // Methods called from the frontend for simulating input. | 56 // Methods called from the frontend for simulating input. |
| 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 String* code, const int* windowsVirtualK
eyCode, const int* nativeVirtualKeyCode, const bool* autoRepeat, const bool* isK
eypad, const bool* isSystemKey) 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 String* code, const String* key, const i
nt* windowsVirtualKeyCode, const int* nativeVirtualKeyCode, const bool* autoRepe
at, const bool* isKeypad, const bool* isSystemKey) 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) 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) override; |
| 59 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; |
| 60 private: | 60 private: |
| 61 InspectorInputAgent(InspectorPageAgent*, InspectorClient*); | 61 InspectorInputAgent(InspectorPageAgent*, InspectorClient*); |
| 62 | 62 |
| 63 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 63 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 64 InspectorClient* m_client; | 64 InspectorClient* m_client; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 | 67 |
| 68 } // namespace blink | 68 } // namespace blink |
| 69 | 69 |
| 70 #endif // !defined(InspectorInputAgent_h) | 70 #endif // !defined(InspectorInputAgent_h) |
| OLD | NEW |