How to make a floating window with chrome app - google-chrome

This chrome app https://chrome.google.com/webstore/detail/floating-for-youtube/jjphmlaoffndcnecccgemfdaaoighkel can float on any windows app
What chrome api does it use ?

you can achieve to this result with picture in picture:
https://developer.mozilla.org/en-US/docs/Web/API/Picture-in-Picture_API
but I think it works only with videos

Related

Sidebar for Google App Script doesn't show content in Chrome

I didn't manage to show content on sidebar with Google App Script until I understood it wasn't working only for Chrome / OS 10.11.6...
This script: https://developers.google.com/apps-script/quickstart/docs
doesn't work on Chrome 53.0.2785.116 (64-bit), it is working well on safari.
Do you have an idea why?
I created a new doc and ran the quickstart without issue.
Chrome 53.0.2785.116 m
There is a broken link for an icon on the bottom of the sidebar. But the rest renders in chrome.
Check on both windows and osx. Both work.

Facebook link on mobile should open the facebook app and not the browser

On the mobile version of the website I created
I tried to link to the Facebook app with the following code
fb://page/[pageID]
It works perfectly on iOS, but on Android it will work with the following code
fb://profile/[pageID]
Does anyone know a solution? Maybe some JavaScript to detect the device and then change the URL for that device.
I solved the problem by doing this, maybee someone else can use it,
the classes hideonmobile & hideonbigscreen are display:none in the right media query
<div class="hideonmobile"></div> <div class="hideonbigscreen"></div>

Hide address and toolbar in Chrome

I'm using Google Chrome Version 46.0.2490.80 m
I would like to know if there is a way to hide the address bar and toolbar?
The flag Compact Navigation seems to have been removed.
Is there maybe a solution to do this using Chrome Apps ?
Thanks
Sorry, but chrome extensions can't change the ui in any way(other than adding and changing their own icons). The closest you could get to doing this is by full-screening the browser:
chrome.windows.update(windowId, { state: "fullscreen" })
look at https://developer.chrome.com/extensions/windows#method-update
chrome apps default start with no addressbar.

Using chrome to convert window.open to Chrome always on top panel

I have a web app that is using javascript window.open command, my wish is to make these popups always on top.
Looking on the internet I saw recommendation to add body.onBlur='self.focus'.
This is not good for me because other windows cannot be accessed in this kind of approach.
What I thought is to write an extension that on pop-out will convert the window.open-opened pages to a chrome dialog.
The big question: This is even possible?
In the chrome dialog that I have tested the panels are always on to only if they are positioned in the top right of the window but if I am moving them to a different location the always on to function doesn't work
https://chrome.google.com/webstore/detail/site-on-panel/pcjbpfaogjhnnnhdldamflaelejhbhag?utm_source=chrome-app-launcher-info-dialog
https://chrome.google.com/webstore/detail/picture-in-picture-viewer/efaagmolahogmekmnmkigonhfcdiemnl?utm_source=chrome-app-launcher-info-dialog
If you control the web app, you can replace window.open with a Chrome App. You can send a message from the web app to the chrome app, which can then use the always on top app window option and display it in a webview.

Enable and use HTML5 geolocation in WebView XCode (Cocoa)

I'm trying to build a Mac OS X application with HTML5 content, and I would like to use the HTML5 geolocation feature in WebView.
For my test I use this basic demo page : http://html5demos.com/geo
On Chrome or Safari, this page is working and the browser shows me an alert about location sharing (Chrome alert infos : https://support.google.com/chrome/bin/answer.py?hl=en&answer=142065).
In my application (a simple WebView in a window) the attempt of geolocate goes directly to fail. Here is a (not necessary) screenshot : http://i46.tinypic.com/fedqtw.png
So, I don't know exactly how to do it but maybe there is a way to intercept the attempt of geolocate and use a modal YesNo alert box to notice user...
Thanks in advance for any help :)
Beny
PS: I looked in WebPreferencesPrivate if possibly a native option to enable may exists, but no.