diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 23:04:48 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 23:04:48 +0000 |
commit | 7deaa81460cae8f40cbd3408a611527b2299c354 (patch) | |
tree | df5bd337270d024838b2b83595c970156e741f85 | |
parent | 12a7aa885e5067665577bb86b20f004f0e8c57cb (diff) | |
download | chromium_src-7deaa81460cae8f40cbd3408a611527b2299c354.zip chromium_src-7deaa81460cae8f40cbd3408a611527b2299c354.tar.gz chromium_src-7deaa81460cae8f40cbd3408a611527b2299c354.tar.bz2 |
Fix several painting glitches for toolstrips.
* Reset HWND size when HWNDHtmlView changes size. The two should always be in sync.
* Race: We might already have frames when RenderWidget receives a new background, need to set these to transparent too.
* Race: Toolstrip background not always available by the time ExtensionToolstrip is constucted
* Make images line up correctly for toolstrip buttons.
Review URL: http://codereview.chromium.org/99042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14682 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/browser_resources.grd | 2 | ||||
-rwxr-xr-x | chrome/browser/extensions/extension_view.cc | 33 | ||||
-rwxr-xr-x | chrome/browser/extensions/extension_view.h | 17 | ||||
-rwxr-xr-x | chrome/browser/resources/extensions_toolstrip.css | 101 | ||||
-rw-r--r-- | chrome/browser/views/bookmark_bar_view.cc | 13 | ||||
-rw-r--r-- | chrome/browser/views/hwnd_html_view.cc | 22 | ||||
-rw-r--r-- | chrome/browser/views/hwnd_html_view.h | 9 | ||||
-rw-r--r-- | chrome/common/temp_scaffolding_stubs.h | 2 | ||||
-rw-r--r-- | chrome/test/data/extensions/test/Resizer/resizer.html | 2 | ||||
-rw-r--r-- | webkit/glue/webview_impl.cc | 8 |
10 files changed, 151 insertions, 58 deletions
diff --git a/chrome/browser/browser_resources.grd b/chrome/browser/browser_resources.grd index a72b652..8ca4fd0 100644 --- a/chrome/browser/browser_resources.grd +++ b/chrome/browser/browser_resources.grd @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- This comment is only here because changes to resources are not picked up -without changes to the corresponding grd file. --> +without changes to the corresponding grd file. --> <grit latest_public_release="0" current_release="1"> <outputs> <output filename="grit/browser_resources.h" type="rc_header"> diff --git a/chrome/browser/extensions/extension_view.cc b/chrome/browser/extensions/extension_view.cc index b55c3aa..a26194c 100755 --- a/chrome/browser/extensions/extension_view.cc +++ b/chrome/browser/extensions/extension_view.cc @@ -34,21 +34,38 @@ ExtensionView::ExtensionView(Extension* extension, Browser* browser) : HWNDHtmlView(url, this, false, instance), extension_(extension), - browser_(browser) { - SetVisible(false); + browser_(browser), + did_stop_loading_(false), + pending_preferred_width_(0) { +} + +void ExtensionView::ShowIfCompletelyLoaded() { + // We wait to show the ExtensionView until it has loaded and our parent has + // given us a background. These can happen in different orders. + if (did_stop_loading_ && !render_view_host()->view()->background().empty()) { + SetVisible(true); + DidContentsPreferredWidthChange(pending_preferred_width_); + } +} + +void ExtensionView::SetBackground(const SkBitmap& background) { + HWNDHtmlView::SetBackground(background); + ShowIfCompletelyLoaded(); } void ExtensionView::DidStopLoading(RenderViewHost* render_view_host, int32 page_id) { render_view_host->WasResized(); - SetVisible(true); + did_stop_loading_ = true; + ShowIfCompletelyLoaded(); } void ExtensionView::DidContentsPreferredWidthChange(const int pref_width) { - if (pref_width > 0) { - // SchedulePaint first because new_width may be smaller and we want - // the Parent to paint the vacated space. - SchedulePaint(); + // Don't actually do anything with this information until we have been shown. + // Size changes will not be honored by lower layers while we are hidden. + if (!IsVisible()) { + pending_preferred_width_ = pref_width; + } else if (pref_width > 0) { set_preferred_size(gfx::Size(pref_width, height())); SizeToPreferredSize(); @@ -61,12 +78,12 @@ void ExtensionView::DidContentsPreferredWidthChange(const int pref_width) { } SchedulePaint(); - render_view_host()->WasResized(); } } void ExtensionView::CreatingRenderer() { render_view_host()->AllowExtensionBindings(); + SetVisible(false); } void ExtensionView::RenderViewCreated(RenderViewHost* rvh) { diff --git a/chrome/browser/extensions/extension_view.h b/chrome/browser/extensions/extension_view.h index 7c11371..51c84a3 100755 --- a/chrome/browser/extensions/extension_view.h +++ b/chrome/browser/extensions/extension_view.h @@ -7,6 +7,7 @@ #include "chrome/browser/renderer_host/render_view_host_delegate.h" #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" +#include "skia/include/SkBitmap.h" // TODO(port): Port these files. #if defined(OS_WIN) @@ -30,14 +31,19 @@ class ExtensionView : public HWNDHtmlView, public RenderViewHostDelegate, public RenderViewHostDelegate::View { public: + // ExtensionView ExtensionView(Extension* extension, const GURL& url, SiteInstance* instance, Browser* browser); + Extension* extension() { return extension_; } + // HWNDHtmlView virtual void CreatingRenderer(); + virtual void SetBackground(const SkBitmap& background); + // RenderViewHostDelegate // TODO(mpcomplete): GetProfile is unused. virtual Profile* GetProfile() const { return NULL; } @@ -73,8 +79,10 @@ class ExtensionView : public HWNDHtmlView, virtual void TakeFocus(bool reverse); virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); - Extension* extension() { return extension_; } private: + // We wait to show the ExtensionView until several things have loaded. + void ShowIfCompletelyLoaded(); + // The extension that we're hosting in this view. Extension* extension_; @@ -84,6 +92,13 @@ class ExtensionView : public HWNDHtmlView, // Common implementations of some RenderViewHostDelegate::View methods. RenderViewHostDelegateViewHelper delegate_view_helper_; + // Whether the RenderWidget has reported that it has stopped loading. + bool did_stop_loading_; + + // What we should set the preferred width to once the ExtensionView has + // loaded. + int pending_preferred_width_; + DISALLOW_COPY_AND_ASSIGN(ExtensionView); }; diff --git a/chrome/browser/resources/extensions_toolstrip.css b/chrome/browser/resources/extensions_toolstrip.css index fa8e804..c7778ff 100755 --- a/chrome/browser/resources/extensions_toolstrip.css +++ b/chrome/browser/resources/extensions_toolstrip.css @@ -5,11 +5,12 @@ */ body { display:-webkit-box; - -webkit-box-align:center; + -webkit-box-orient:horizontal; + -webkit-box-align:stretch; white-space:nowrap; overflow: hidden; margin: 0; - padding:0 6px; + padding:0; font: menu; color: #062D75; text-shadow: #FFFFFF 1px 1px 0px; @@ -18,41 +19,63 @@ body { } /** - * Buttons. The following styles make <button><span>foo</span></button> look - * like the bookmarkbar buttons. + * Toolstrip Buttons. The following styles make + * <div class="toolstrip-button"><img><span>Woot</span></div> look like the + * bookmarkbar buttons on Windows. + * + * TODO(aa): We may have to come up with a way to modify these slightly on + * different platforms. + * + * TODO(aa): It would be nice if we could use actual <button> tags work here, + * which should work once https://bugs.webkit.org/show_bug.cgi?id=25406 is + * fixed. + */ +div.toolstrip-button { + display:-webkit-box; + -webkit-box-orient:horizontal; + -webkit-box-align:center; + border:6px solid transparent; + font:menu; + background:transparent; + color: #062D75; + text-shadow: #FFFFFF 1px 1px 0px; + line-height:100%; + padding:0; +} + +div.toolstrip-button>img { + display:-webkit-box; + width:16px; + height:16px; + /** + * We inset the image slightly vertically, so that the button can be shorter + * than would otherwise be possibe with our fat borders. + */ + margin:-1px 5px -1px 0; +} + +div.toolstrip-button>span { + display:-webkit-box; + margin-right:1px; + /** + * Hack: WebKit appears to measure text height slightly differently than we do + * in native code, making us not line up when centering, so we shift ourselves + * up one pixel to match. + */ + margin-top:-1px; +} + +/** + * TODO(aa): It would be nice if these border images could be stored in Chrome + * as, normal images even if those images are just translated into data URLs at + * runtime. */ -button {
- border:6px solid transparent;
- font:menu;
- background:transparent;
- color: #062D75;
- text-shadow: #FFFFFF 1px 1px 0px;
- line-height:100%;
- height:100%;
- padding:0;
-}
-
-/**
- * Hack :( webkit centers the text content inside the button slightly different
- * than the native code, requiring this adjustment.
- * TODO(aa): Find some other way to fix this.
- */
-button>span {
- position:relative;
- top:-1px;
-}
-
-/**
- * TODO(aa): It would be nice if these border images could be stored in Chrome
- * as, normal images even if those images are just translated into data URLs at
- * runtime.
- */
-button:hover {
- border-width:6px;
- -webkit-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAaCAYAAACHD21c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752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAaFJREFUeNqklOlu2zAQhL+laFKHrSRt2vd/sj5AA7RpdFG0zM0PWT4Cx27dAfYPMcPZCys/fgZlD1U9CwAROYsFVuQo2MbIMPTEODJN00ywFuc8RVGycu7wgZW90zgMDH3D46Zi862mKnIAuiHQtAOvzStFuSEvilmoCtu4Zehbvn994KleowrTLqGAWzmevzhW1vLy+40sszjvsaCE0PO4qXh6WJMUkh7KBgEF6roiThNd6HHeYVSVOI7U6xxVSElPNRzbAVWRE8cRVcWiSko7ityTVM+Ipx8A5N6R0g5UMXMqijHCaYaXYIygKAiYj+ncwsI33AnzcSNuOu75/+F4d41yh93S1Tt0e0e5ntalRysnBLni8G9zFJnjAuxhjldIp+9ncxQRUko3m5JSOiyLMSLYLCOM8aZwjFtslmFEMGIE5z1dH7i1eX0IOO8RI7NjWZY0bUfbdJ+Kmqala3vKssSIzM1xzlGua379eSPuJoo8J/cegDCOdEOga3uqTY1bLt1Ls9XlPMYYGfpPzmNZHkUiWFiOLXif45z/q4P8PgC/bsLRhT00kAAAAABJRU5ErkJggg==) 6 round round;
-}
-
-button:active {
- border-width:6px;
- -webkit-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAACXBIWXMAAA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-}
+div.toolstrip-button:hover { + border-width:6px; + -webkit-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAaCAYAAACHD21cAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKL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ip-button:active { + border-width:6px; + -webkit-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIk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G/pa5rmqaZTgHz+ZxFCMzmASyJDfT82mpsZGeRwbC3gikOuhSPyTGZvwcAgLLi1uEcpE8AAAAASUVORK5CYII=) 6 round round; +} diff --git a/chrome/browser/views/bookmark_bar_view.cc b/chrome/browser/views/bookmark_bar_view.cc index 34c4f9b..d9ebbd6 100644 --- a/chrome/browser/views/bookmark_bar_view.cc +++ b/chrome/browser/views/bookmark_bar_view.cc @@ -1432,16 +1432,17 @@ bool BookmarkBarView::AddExtensionToolstrips(const ExtensionList* extensions) { bool added_toolstrip = false; for (ExtensionList::const_iterator extension = extensions->begin(); extension != extensions->end(); ++extension) { - for (std::vector<std::string>::const_iterator toolstrip = + for (std::vector<std::string>::const_iterator toolstrip_path = (*extension)->toolstrips().begin(); - toolstrip != (*extension)->toolstrips().end(); ++toolstrip) { - ExtensionToolstrip* view = + toolstrip_path != (*extension)->toolstrips().end(); ++toolstrip_path) { + ExtensionToolstrip* toolstrip = new ExtensionToolstrip(*extension, - (*extension)->GetResourceURL(*toolstrip), + (*extension)->GetResourceURL(*toolstrip_path), browser_); int index = GetBookmarkButtonCount() + num_extension_toolstrips_; - view->view()->SetBackground(toolstrip_background_); - AddChildView(index, view); + if (!toolstrip_background_.empty()) + toolstrip->view()->SetBackground(toolstrip_background_); + AddChildView(index, toolstrip); added_toolstrip = true; ++num_extension_toolstrips_; } diff --git a/chrome/browser/views/hwnd_html_view.cc b/chrome/browser/views/hwnd_html_view.cc index a0174d6..6856f57 100644 --- a/chrome/browser/views/hwnd_html_view.cc +++ b/chrome/browser/views/hwnd_html_view.cc @@ -32,6 +32,28 @@ HWNDHtmlView::~HWNDHtmlView() { } } +void HWNDHtmlView::SetVisible(bool is_visible) { + HWNDView::SetVisible(is_visible); + + // Also tell RenderWidgetHostView the new visibility. Despite its name, it is + // not part of the View heirarchy and does not know about the change unless we + // tell it. + if (render_view_host() && render_view_host()->view()) { + if (is_visible) + render_view_host()->view()->Show(); + else + render_view_host()->view()->Hide(); + } +} + +void HWNDHtmlView::DidChangeBounds(const gfx::Rect& previous, + const gfx::Rect& current) { + // Propagate the new size to RenderWidgetHostView. + // We can't send size zero because RenderWidget DCHECKs that. + if (render_view_host() && render_view_host()->view() && !current.IsEmpty()) + render_view_host()->view()->SetSize(gfx::Size(width(), height())); +} + void HWNDHtmlView::SetBackground(const SkBitmap& background) { if (initialized_) { DCHECK(render_view_host_); diff --git a/chrome/browser/views/hwnd_html_view.h b/chrome/browser/views/hwnd_html_view.h index 49e2c88..275c891 100644 --- a/chrome/browser/views/hwnd_html_view.h +++ b/chrome/browser/views/hwnd_html_view.h @@ -22,6 +22,13 @@ class HWNDHtmlView : public views::HWNDView { bool allow_dom_ui_bindings, SiteInstance* instance); virtual ~HWNDHtmlView(); + // View + virtual void SetVisible(bool is_visible); + + virtual void DidChangeBounds(const gfx::Rect& previous, + const gfx::Rect& current); + + // HWNDHtmlView RenderViewHost* render_view_host() { return render_view_host_; } // Initialize the view without a parent window. Used for extensions that @@ -29,7 +36,7 @@ class HWNDHtmlView : public views::HWNDView { void InitHidden(); // Set a custom background for the view. The background will be tiled. - void SetBackground(const SkBitmap& background); + virtual void SetBackground(const SkBitmap& background); protected: // View overrides. diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h index 503c282..9edd9ff 100644 --- a/chrome/common/temp_scaffolding_stubs.h +++ b/chrome/common/temp_scaffolding_stubs.h @@ -489,9 +489,11 @@ class HWNDHtmlView { RenderViewHost* render_view_host() { NOTIMPLEMENTED(); return NULL; } void InitHidden() { NOTIMPLEMENTED(); } void set_preferred_size(const gfx::Size& size) { NOTIMPLEMENTED(); } + virtual void SetBackground(const SkBitmap&) { NOTIMPLEMENTED(); } virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); } void SizeToPreferredSize() { NOTIMPLEMENTED(); } HWNDHtmlView* GetParent() const { NOTIMPLEMENTED(); return NULL; } + bool IsVisible() const { NOTIMPLEMENTED(); return false; } void Layout() { NOTIMPLEMENTED(); } void SchedulePaint() { NOTIMPLEMENTED(); } SiteInstance* site_instance() { NOTIMPLEMENTED(); return NULL; } diff --git a/chrome/test/data/extensions/test/Resizer/resizer.html b/chrome/test/data/extensions/test/Resizer/resizer.html index 8d2691e..0542474 100644 --- a/chrome/test/data/extensions/test/Resizer/resizer.html +++ b/chrome/test/data/extensions/test/Resizer/resizer.html @@ -3,14 +3,12 @@ <style> .big { width: 500px; - height: 20px; background-color: red; -webkit-transition: all .5s ease-out; } .small { width: 50px; - height: 20px; background-color: blue; -webkit-transition: all .5s ease-out; } diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc index e06a213..7e41aa9 100644 --- a/webkit/glue/webview_impl.cc +++ b/webkit/glue/webview_impl.cc @@ -1828,6 +1828,14 @@ WebDevToolsAgentImpl* WebViewImpl::GetWebDevToolsAgentImpl() { } void WebViewImpl::SetIsTransparent(bool is_transparent) { + // Set any existing frames to be transparent. + WebCore::Frame* frame = page_->mainFrame(); + while (frame) { + frame->view()->setTransparent(is_transparent); + frame = frame->tree()->traverseNext(); + } + + // Future frames check this to know whether to be transparent. is_transparent_ = is_transparent; } |