Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 6609047: [linux_views][Win] spoof proof redesign infobar extension with tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cast stroke width. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 894a4a58c4c8a8df184ec3ccb723b0121314f659..651d66f6eee3a5516fa829fa88f54047c4e863ed 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1805,11 +1805,16 @@ void BrowserView::Layout() {
}
void BrowserView::PaintChildren(gfx::Canvas* canvas) {
- views::ClientView::PaintChildren(canvas);
+ // Paint the |infobar_container_| last so that it may paint its
+ // overlapping tabs.
+ for (int i = 0; i < child_count(); ++i) {
+ View* child = GetChildViewAt(i);
+ DCHECK(child) << "Should not have a NULL child View for index in bounds";
Peter Kasting 2011/03/07 20:14:30 Nit: I would remove this DCHECK(). There are hund
Sheridan Rawlins 2011/03/08 01:38:19 Done.
+ if (child != infobar_container_)
+ child->Paint(canvas);
+ }
- infobar_container_->PaintInfoBarArrows(canvas->AsCanvasSkia(),
- this,
- GetInfoBarArrowCenterX());
+ infobar_container_->Paint(canvas);
}
void BrowserView::ViewHierarchyChanged(bool is_add,

Powered by Google App Engine
This is Rietveld 408576698