[chromium-dev] Re: Tab Thumbnails and Aero Peek (of Windows 7)

2009-10-26 Thread 坊野 博典

Hi Brett,

Thank you for your suggestions.
I would like to use the default size and resize it in my code that
creates tab thumbnails.

Regards,

Hironori Bono
E-mail: hb...@chrommium.org

2009/10/24 Brett Wilson bre...@chromium.org:
 2009/10/23 Hironori Bono (坊野 博典) hb...@google.com:
 Hi Brett,

 Thank you so much for noticing this. I'm integrating the
 ThumbnailGenertor class into my prototype now. :)
 By the way, I'm a little wondering if there is a function that changes
 the width and the height of a thumbnail image generated by the
 ThumbnailGenerator class at run time. If not, I would like to hear
 there is a plan to add it.
 When Windows 7 shows tab thumbnails, it automatically calculates the
 width and the height of a thumbnail image so that it can show all
 thumbnails in one line. (When we open too many tabs and Windows 7
 cannot show their thumbnails, it shows a list of tab titles.) In
 brief, we cannot assume the width or the height of a thumbnail as
 constant values on Windows 7.
 So, it may be better for the ThumbnailGenerator class to have an
 interface that changes the width and the height of its thumbnails. (I
 has added code that resizes the thumbnails retrieved from the
 ThumbnailGenerator object and sends the resized thumbnails to Windows
 7. So, I don't mind it at all.)

 There isn't a way to do this. The reason is that the thumbnail
 generator precalculates thumbnails in advance for many pages (for
 example, when we're discarding the backing store). This means we have
 to know basically when we start Chrome what the max thumbnail size
 will be. It uses power-of-two downsampling to be as fast as possible,
 so the actual thumbnails aren't guaranteed to be any particular size.

 I would just use the default size for now. If it doesn't look OK, we
 can add a future enhancement to request the size, so the ones it
 generates on-demand (the ones where there is a backing store) can have
 a larger size if needed.

 Brett


--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Tab Thumbnails and Aero Peek (of Windows 7)

2009-10-26 Thread 坊野 博典

Hi Mike,

Thank you for your question and suggestion.

On Sat, Oct 24, 2009 at 2:19 AM, Mike Pinkerton pinker...@chromium.org wrote:
 All the screenshots show this with a single window. What happens if
 you have multiple windows open? Does it only show the selected window?

Unfortunately, the current prototype just shows the thumbnails of the
all Chromium windows.
I realize many users like to see only the thumbnails of the selected
window and would like to implement it. Nevertheless, to show only the
thumbnails of the selected window, we probably need to handle more
events than the ones handled by the current prototype (such as
detaching a tab, attaching a tab, creating a popup window, creating a
dialog, etc.) and choose the window to which a tab (a pop-up window,
or a dialog) belongs. Unfortunately, my current prototype is still an
infant phase and it is not good time to implement such complicated
logics.

 As an alternate suggestion, we have a mode in Camino2 called
 tabspose which is like OS X Expose, but shows the (large) thumbnails
 of all open tabs overlaying the content area of the browser. Allows
 much better visualization of the tabs because you're not limited to
 small squares but can use as much of the window as available.

 This does involve interacting with the window already, so it doesn't
 work until you have the window in the foreground, but I wanted to
 bring it up as an idea.

 http://www.flickr.com/photos/spaunsglo/987375693/ for an early
 screenshot (currently looks more polished, but same idea).

Thank you for your link. I'm going to look into it. :)

Regards,

Hironori Bono
E-mail: hb...@chromium.org


 2009/10/23 Brett Wilson bre...@chromium.org:

 2009/10/23 Hironori Bono (坊野 博典) hb...@google.com:
 Hi Brett,

 Thank you so much for noticing this. I'm integrating the
 ThumbnailGenertor class into my prototype now. :)
 By the way, I'm a little wondering if there is a function that changes
 the width and the height of a thumbnail image generated by the
 ThumbnailGenerator class at run time. If not, I would like to hear
 there is a plan to add it.
 When Windows 7 shows tab thumbnails, it automatically calculates the
 width and the height of a thumbnail image so that it can show all
 thumbnails in one line. (When we open too many tabs and Windows 7
 cannot show their thumbnails, it shows a list of tab titles.) In
 brief, we cannot assume the width or the height of a thumbnail as
 constant values on Windows 7.
 So, it may be better for the ThumbnailGenerator class to have an
 interface that changes the width and the height of its thumbnails. (I
 has added code that resizes the thumbnails retrieved from the
 ThumbnailGenerator object and sends the resized thumbnails to Windows
 7. So, I don't mind it at all.)

 There isn't a way to do this. The reason is that the thumbnail
 generator precalculates thumbnails in advance for many pages (for
 example, when we're discarding the backing store). This means we have
 to know basically when we start Chrome what the max thumbnail size
 will be. It uses power-of-two downsampling to be as fast as possible,
 so the actual thumbnails aren't guaranteed to be any particular size.

 I would just use the default size for now. If it doesn't look OK, we
 can add a future enhancement to request the size, so the ones it
 generates on-demand (the ones where there is a backing store) can have
 a larger size if needed.

 Brett

 




 --
 Mike Pinkerton
 Mac Weenie
 pinker...@google.com


--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Tab Thumbnails and Aero Peek (of Windows 7)

2009-10-23 Thread Brett Wilson

2009/10/23 Hironori Bono (坊野 博典) hb...@google.com:
 Hi Brett,

 Thank you so much for noticing this. I'm integrating the
 ThumbnailGenertor class into my prototype now. :)
 By the way, I'm a little wondering if there is a function that changes
 the width and the height of a thumbnail image generated by the
 ThumbnailGenerator class at run time. If not, I would like to hear
 there is a plan to add it.
 When Windows 7 shows tab thumbnails, it automatically calculates the
 width and the height of a thumbnail image so that it can show all
 thumbnails in one line. (When we open too many tabs and Windows 7
 cannot show their thumbnails, it shows a list of tab titles.) In
 brief, we cannot assume the width or the height of a thumbnail as
 constant values on Windows 7.
 So, it may be better for the ThumbnailGenerator class to have an
 interface that changes the width and the height of its thumbnails. (I
 has added code that resizes the thumbnails retrieved from the
 ThumbnailGenerator object and sends the resized thumbnails to Windows
 7. So, I don't mind it at all.)

There isn't a way to do this. The reason is that the thumbnail
generator precalculates thumbnails in advance for many pages (for
example, when we're discarding the backing store). This means we have
to know basically when we start Chrome what the max thumbnail size
will be. It uses power-of-two downsampling to be as fast as possible,
so the actual thumbnails aren't guaranteed to be any particular size.

I would just use the default size for now. If it doesn't look OK, we
can add a future enhancement to request the size, so the ones it
generates on-demand (the ones where there is a backing store) can have
a larger size if needed.

Brett

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Tab Thumbnails and Aero Peek (of Windows 7)

2009-10-23 Thread Mike Pinkerton

All the screenshots show this with a single window. What happens if
you have multiple windows open? Does it only show the selected window?

As an alternate suggestion, we have a mode in Camino2 called
tabspose which is like OS X Expose, but shows the (large) thumbnails
of all open tabs overlaying the content area of the browser. Allows
much better visualization of the tabs because you're not limited to
small squares but can use as much of the window as available.

This does involve interacting with the window already, so it doesn't
work until you have the window in the foreground, but I wanted to
bring it up as an idea.

http://www.flickr.com/photos/spaunsglo/987375693/ for an early
screenshot (currently looks more polished, but same idea).

2009/10/23 Brett Wilson bre...@chromium.org:

 2009/10/23 Hironori Bono (坊野 博典) hb...@google.com:
 Hi Brett,

 Thank you so much for noticing this. I'm integrating the
 ThumbnailGenertor class into my prototype now. :)
 By the way, I'm a little wondering if there is a function that changes
 the width and the height of a thumbnail image generated by the
 ThumbnailGenerator class at run time. If not, I would like to hear
 there is a plan to add it.
 When Windows 7 shows tab thumbnails, it automatically calculates the
 width and the height of a thumbnail image so that it can show all
 thumbnails in one line. (When we open too many tabs and Windows 7
 cannot show their thumbnails, it shows a list of tab titles.) In
 brief, we cannot assume the width or the height of a thumbnail as
 constant values on Windows 7.
 So, it may be better for the ThumbnailGenerator class to have an
 interface that changes the width and the height of its thumbnails. (I
 has added code that resizes the thumbnails retrieved from the
 ThumbnailGenerator object and sends the resized thumbnails to Windows
 7. So, I don't mind it at all.)

 There isn't a way to do this. The reason is that the thumbnail
 generator precalculates thumbnails in advance for many pages (for
 example, when we're discarding the backing store). This means we have
 to know basically when we start Chrome what the max thumbnail size
 will be. It uses power-of-two downsampling to be as fast as possible,
 so the actual thumbnails aren't guaranteed to be any particular size.

 I would just use the default size for now. If it doesn't look OK, we
 can add a future enhancement to request the size, so the ones it
 generates on-demand (the ones where there is a backing store) can have
 a larger size if needed.

 Brett

 




-- 
Mike Pinkerton
Mac Weenie
pinker...@google.com

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Tab Thumbnails and Aero Peek (of Windows 7)

2009-10-22 Thread Brett Wilson

Hi Hironori,

Thanks for researching this topic. On generating thumbnails, I wrote
chrome/browser/tab_contents/thumbnail_generator which tries to get the
most up-to-date thumbnail images for all tabs (except ones that
haven't ever been shown) with minimal performance overhead. The code
hasn't been used much in practice yet, but seems to basically work.

It was written for a tab switcher, and the intent is that it will
provide thumbnails for all services in the future (including the new
tab page and the Windows 7 features) for all platforms. So I would
definitely use that, and we should work on fixing any bugs or
limitations that pop up.

It's defaulted to off for most builds because it has a runtime
overhead and its not currently used. If you want to turn it on for
your build, it's started in the constructor for TabContents.

Brett

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Tab Thumbnails and Aero Peek (of Windows 7)

2009-10-22 Thread Erik Arvidsson
2009/10/22 Hironori Bono (坊野 博典) hb...@chromium.org

 How to treat resize events of a browser window?

 The biggest problems of my current prototype are caused by my prototype
 that doesn’t handle resize events of a browser window. (Figure 4 may be
 acceptable. But, I think Figure 5 is unacceptable for many users.) The
 easiest solution for this problem is forcing a background tab to redraw when
 we need an image used for Aero Peek or Tab Thumbnails. Unfortunately, this
 solution probably hurts the rendering performance of Chromium. Another
 solution (or a workaround) is displaying a message “the preview image for
 the selected tab is not available” instead of showing a broken image. Any
 opinions or suggestions are definitely helpful.

Firefox nightlies now supports tab preview. If you resize the window the
background tabs keep their old thumbnails which I think is acceptable.

-- 
erik

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---