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

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

Issue 663523002: Adding support for DOM3 KeyboardEvents Code in KeyboardEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to use domCode instead of native domCode Created 5 years, 11 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 public: 47 public:
48 static PassOwnPtrWillBeRawPtr<InspectorInputAgent> create(Page* page, Inspec torClient* client) 48 static PassOwnPtrWillBeRawPtr<InspectorInputAgent> create(Page* page, Inspec torClient* client)
49 { 49 {
50 return adoptPtrWillBeNoop(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 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 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* domCode, const int* windowsVirtualK eyCode, const int* nativeVirtualKeyCode, const bool* autoRepeat, const bool* isK eypad, const bool* isSystemKey) override;
Wez 2015/01/08 01:14:47 Why is domCode an int* rather than a String*?
Habib Virji 2015/01/12 15:34:17 Since this is the value that was the input, while
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(Page*, InspectorClient*); 61 InspectorInputAgent(Page*, InspectorClient*);
62 62
63 RawPtrWillBeMember<Page> m_page; 63 RawPtrWillBeMember<Page> m_page;
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698