-
Notifications
You must be signed in to change notification settings - Fork 119
Add emulation commands to chrome connection #68
Add emulation commands to chrome connection #68
Conversation
Hi @PatoBeltran, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
The purpose of the core debugger is not to provide a client library for the APIs supported for by Chrome and other Chrome Debugger Protocol compliant runtimes. If this is needed I suggest that we could add a generic method to trigger commands on the connected CDP connection, @roblourens? |
Who will be calling the functions? Aren't they going to be dead functions for time being? |
I told Patricio to add these, to hold vscode-cordova over until we do something like #46 |
I see this as a slippery slope. These should be added in the runtime specific debugger, and not in the core. The core should expose generic logic to make API requests. You just created hard dependency to a Chrome specific API that isn't related to script debugging. |
|
And yet you just expanded the API surface exposed by I made my point, but you are the maintainer, so it's your call. |
Well, I'm not concerned about backwards compatibility here, to be honest. This interface will break when we do #46 and replace ChromeConnection with some other library that provides the CDP endpoint. And that interface should break whenever the protocol changes. |
That's right, the goal of crdi is to pull nightly changes from chromium Since it has both the adapter and client interfaces, the edge adapter can The request, response, event object interfaces are shared between client e.g. https://github.com/nojvek/chrome-remote-debug-interface/blob/master/src/crdi.ts On Wed, Jul 13, 2016 at 5:20 PM, Rob Lourens notifications@github.com
|
Let me keep you in mind that the supported API is an dynamic target and depend on the target client, hence the added ability to fetch Relaying on the Chromium specific API would be a short term thing. |
Add emulation chrome commands which are helpful for viewport resizing.