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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/frame/browser_view.h" 5 #include "chrome/browser/ui/views/frame/browser_view.h"
6 6
7 #if defined(OS_LINUX) 7 #if defined(OS_LINUX)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #endif 9 #endif
10 10
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1798 gfx::Insets insets(GetFindBarBoundingBox().y() + 1, 1798 gfx::Insets insets(GetFindBarBoundingBox().y() + 1,
1799 0, 1799 0,
1800 0, 1800 0,
1801 0); 1801 0);
1802 aeropeek_manager_->SetContentInsets(insets); 1802 aeropeek_manager_->SetContentInsets(insets);
1803 } 1803 }
1804 #endif 1804 #endif
1805 } 1805 }
1806 1806
1807 void BrowserView::PaintChildren(gfx::Canvas* canvas) { 1807 void BrowserView::PaintChildren(gfx::Canvas* canvas) {
1808 views::ClientView::PaintChildren(canvas); 1808 // Paint the |infobar_container_| last so that it may paint its
1809 // overlapping tabs.
1810 for (int i = 0; i < child_count(); ++i) {
1811 View* child = GetChildViewAt(i);
1812 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.
1813 if (child != infobar_container_)
1814 child->Paint(canvas);
1815 }
1809 1816
1810 infobar_container_->PaintInfoBarArrows(canvas->AsCanvasSkia(), 1817 infobar_container_->Paint(canvas);
1811 this,
1812 GetInfoBarArrowCenterX());
1813 } 1818 }
1814 1819
1815 void BrowserView::ViewHierarchyChanged(bool is_add, 1820 void BrowserView::ViewHierarchyChanged(bool is_add,
1816 views::View* parent, 1821 views::View* parent,
1817 views::View* child) { 1822 views::View* child) {
1818 if (is_add && child == this && GetWidget() && !initialized_) { 1823 if (is_add && child == this && GetWidget() && !initialized_) {
1819 Init(); 1824 Init();
1820 initialized_ = true; 1825 initialized_ = true;
1821 } 1826 }
1822 } 1827 }
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
2577 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); 2582 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
2578 2583
2579 return view; 2584 return view;
2580 } 2585 }
2581 #endif 2586 #endif
2582 2587
2583 // static 2588 // static
2584 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { 2589 FindBar* BrowserWindow::CreateFindBar(Browser* browser) {
2585 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); 2590 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window()));
2586 } 2591 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698