What is the best way to simulate a status bar on Chrome Browser?

862 views
Skip to first unread message

Pablo Cantero

unread,
Jul 27, 2011, 7:08:27 PM7/27/11
to Chromium Apps
Hi

I want to create a status bar similar as when I pass the mouse over a
link. How can I do it? What is the best way? I don't want to do it
using JavaScript, creating an object, changing its coordinates and
etc. Is there a native way to show a status bar?

Regards,
Pablo Cantero

Caleb Eggensperger

unread,
Jul 27, 2011, 7:38:05 PM7/27/11
to Pablo Cantero, Chromium Apps
What do you want the status bar to do? What's wrong with the status bubble?

There's no way to add a status bar without using either javascript or editing the source of Chromium itself. Editing the source would mean that you'd have to merge your changes and recompile every time you wanted to update.


--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To post to this group, send email to chromi...@chromium.org.
To unsubscribe from this group, send email to chromium-app...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/?hl=en.


Pablo Cantero

unread,
Jul 27, 2011, 8:39:31 PM7/27/11
to Caleb Eggensperger, Chromium Apps
Hi Caleb!

There isn't a problem. Actually I want to know how to create it. I want to port my Firefox extension Gesture Translate to Google Chrome. 

To do it, I need to simulate a status bar. 

Is there a way to programmatically create a status bubble on Google Chrome?

In first instance I'm avoiding to create a status bar with JavaScript. I had many problems doing it, e.g. conflicts with page's JavaScript and CSS.

Regards,
Pablo Cantero
--
Pablo Cantero
pablocantero.com

Caleb Eggensperger

unread,
Jul 27, 2011, 9:05:18 PM7/27/11
to Pablo Cantero, Chromium Apps
Ah, if you're developing an extension then javascript is the only way to accomplish this. There's no programmatic way to make a status bubble. Also, adding your own status bar just to show translations might not be a great idea. You could show the translation as a bubble above the translated text like this extension does:

Pablo Cantero

unread,
Jul 27, 2011, 9:12:20 PM7/27/11
to Caleb Eggensperger, Chromium Apps
Actually I prefer on the status bar. I don't want to see the translated text close to the selected text. Bubble Translate, hides parts of the text that I'm reading, I don't like this way.

Regards,
Pablo Cantero 
--
Pablo Cantero
pablocantero.com

timo

unread,
Aug 1, 2011, 5:43:56 AM8/1/11
to Chromium Apps
You said: I had many problems doing it, e.g. conflicts with page's
JavaScript and CSS.

You'll never have problems with other pages javaScript because the
chrome browser doesn't allow interference between your JS and the
page's JS..
The CSS part: Well, if you use inline style with !important for every
rule then you'll be save.

An alternative for your needs would be notificvations:
http://www.html5rocks.com/en/tutorials/notifications/quick/
but as I hear,... you don't like this eather ;o)

Good luck!

On 28 Jul., 03:12, Pablo Cantero <pa...@pablocantero.com> wrote:
> Actually I prefer on the status bar. I don't want to see the translated text
> close to the selected text. Bubble Translate, hides parts of the text that
> I'm reading, I don't like this way.
>
> Regards,
> Pablo Cantero
>
> On Wed, Jul 27, 2011 at 10:05 PM, Caleb Eggensperger <caleb...@gmail.com>wrote:
>
>
>
>
>
>
>
>
>
> > Ah, if you're developing an extension then javascript is the only way to
> > accomplish this. There's no programmatic way to make a status bubble. Also,
> > adding your own status bar just to show translations might not be a great
> > idea. You could show the translation as a bubble above the translated text
> > like this extension does:
>
> >https://chrome.google.com/webstore/detail/jlhlebbhengjlhmcjebbkambaek...
>
> > On Wed, Jul 27, 2011 at 17:39, Pablo Cantero <pa...@pablocantero.com>wrote:
>
> >> Hi Caleb!
>
> >> There isn't a problem. Actually I want to know how to create it. I want to
> >> port my Firefox extension Gesture Translate to Google Chrome.
>
> >> To do it, I need to simulate a status bar.
>
> >> Is there a way to programmatically create a status bubble on Google
> >> Chrome?
>
> >> In first instance I'm avoiding to create a status bar with JavaScript. I
> >> had many problems doing it, e.g. conflicts with page's JavaScript and CSS.
>
> >> Regards,
> >> Pablo Cantero
>
> >> On Wed, Jul 27, 2011 at 8:38 PM, Caleb Eggensperger <caleb...@gmail.com>wrote:
>
> >>> What do you want the status bar to do? What's wrong with the status
> >>> bubble?
>
> >>> There's no way to add a status bar without using either javascript or
> >>> editing the source of Chromium itself. Editing the source would mean that
> >>> you'd have to merge your changes and recompile every time you wanted to
> >>> update.
>
> >>> On Wed, Jul 27, 2011 at 16:08, Pablo Cantero <pa...@pablocantero.com>wrote:
>
> >>>> Hi
>
> >>>> I want to create a status bar similar as when I pass the mouse over a
> >>>> link. How can I do it? What is the best way? I don't want to do it
> >>>> using JavaScript, creating an object, changing its coordinates and
> >>>> etc. Is there a native way to show a status bar?
>
> >>>> Regards,
> >>>> Pablo Cantero
>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "Chromium Apps" group.
> >>>> To post to this group, send email to chromium-a...@chromium.org.
> >>>> To unsubscribe from this group, send email to
> >>>> chromium-apps+unsubscr...@chromium.org.
Reply all
Reply to author
Forward
0 new messages