Validation for chrome extension idea

88 views
Skip to first unread message

Asaf Amit

unread,
Jan 27, 2021, 8:33:49 AM1/27/21
to Chromium Extensions
Hey everyone,

I have an idea for an IPad app that will let you sketch anything you want and automatically paste the image you sketched to the web browser.

Would it be possible and what are the limitations?

thank you :)

PhistucK

unread,
Jan 27, 2021, 12:00:13 PM1/27/21
to Asaf Amit, Chromium Extensions
To an external web browser, you mean, right? Not a web browser on the iPad (no extensions there).
Not sure I see the limitations, I think it is just possible. If the canvas is big, it may take a while to pass the bitmap, but other than that... Sounds doable.

PhistucK


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/861fab29-7b11-451a-a812-655b1245af5fn%40chromium.org.
Message has been deleted

אסף עמית

unread,
Jan 27, 2021, 4:09:19 PM1/27/21
to PhistucK, Chromium Extensions
Can you refer me to a method in the documentation that allows the extension to paste into the user input location?

Artem Harutyunyan

unread,
Jan 27, 2021, 4:38:30 PM1/27/21
to אסף עמית, PhistucK, Chromium Extensions
Take a look at https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API. You will probably need `clipboardRead` and `clipboardWrite` permissions in your manifest to be able to use the API (https://developer.chrome.com/docs/extensions/mv2/permission_warnings/). 

HTH
Artem.

PhistucK

unread,
Jan 28, 2021, 4:12:00 AM1/28/21
to אסף עמית, Chromium Extensions
Sorry, I think I misread your original description.
I guess I missed the "paste" part. If you want to copy/paste something from an iPad application to an iPad browser (since you cannot copy on one device and paste on another without something like cloud clipboards), you cannot do that with extensions because iPad browsers do not support Chrome extensions at all (as mentioned).
Also, extensions cannot take a screenshot of other applications (you can ask the user to share the entire desktop/specific window and take a snapshot of that video, though, but websites can also do that), nor can they control other applications (unless the application exposes an HTTP based API or a protocol handler, but then websites can also control them).


PhistucK

אסף עמית

unread,
Jan 28, 2021, 4:16:18 AM1/28/21
to PhistucK, Chromium Extensions
The idea is to have an Ipad app which alows pen sketches. When the user finished his sketch and pressed a button, the sketch will become an image and will be transfered via backend service to a desktop chrome extension of the same user, and the image will be pasted immediately to the input location (lets say a docs app).

PhistucK

unread,
Jan 28, 2021, 4:47:45 AM1/28/21
to אסף עמית, Chromium Extensions
I see, so yeah, once you have the image in your extension, the image can probably be copied via the various clipboard APIs (you will have to think how you can build it in manifest version 3, where the "background page/script" is a service worker without any access to clipboard API, I think. You will need a browser tab for that)

PhistucK

Reply all
Reply to author
Forward
0 new messages