Chrome has an app mode (chrome.exe --app-id=extension-id) in which we
can launch an application (chrome extension) in a dedicated window.
This will also strip-off chrome menus, address bar and other frills
giving the entire canvas for the app, so that developer can give a
near desktop app feel. So far so good.
Some of the issues that come in the way of giving a complete desktop
view are:
1. 'Leave this page' Dialog
2. 'Waiting for ...' blurb
3. Chrome's default keyboard shortcuts like Ctrl+T, Ctrl+F, Ctrl+J
Issues in detail:
'Leave this page' Dialog:
Although the app launches in a dedicated window, the app gets no
control over the window. The app cannot control the minimize, maximize
or close buttons shown on the window frame. It cannot introduce custom
behavior when a window is being closed. The only thing possible is to
handle the onbeforeunload event on the document and prompt the user to
not to close the window. With this approach too one ends up with a
dialog whose buttons read 'Leave this Page' or 'Stay on this Page'.
These phrases on buttons are not appropriate as the user perceives
this window to be an application but not a web page. Ideally, the
application should be able to have full control over this and should
be able to suppress the dialog entirely if it chooses to.
'Waiting for http://....':
Much like how the browser shows 'waiting for
http://google.com...'
kind of blurbs on the lower left corner of the screen whenever it is
loading some resources on a web page, it shows the blurbs in the app
mode as well. I think, these blurbs are annoying in an application. So
is the spinner that appear in the title bar when the page inside is
loading something, like an iframe.
Default keyboard shortcuts:
There is no way to override the default keyboard shortcuts like Ctrl
+T. Pressing Ctrl+T/Ctrl+N opens new window of chrome in app mode too.
My application has tabs and has an option to start a new transaction.
I would prefer to use Ctrl+T and Ctrl+N for in app actions.
Is it possible to change some or all of the above behaviors in the app
mode?
Giving window controlling capabilities for extensions, especially when
they are running in their own window, is perfectly fine, I think.
thanks,
+ramki