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

Unified Diff: chrome/browser/ui/views/frame/contents_container.h

Issue 10580039: Adds ability to render omnibox as a view above the page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows Created 8 years, 6 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/contents_container.h
diff --git a/chrome/browser/ui/views/frame/contents_container.h b/chrome/browser/ui/views/frame/contents_container.h
index 4e6ab7ab3188d30a53da383fad50d1919bf8a97b..f931357c3041fe3f309e00c29e381d4118ed4597 100644
--- a/chrome/browser/ui/views/frame/contents_container.h
+++ b/chrome/browser/ui/views/frame/contents_container.h
@@ -23,6 +23,12 @@ class ContentsContainer : public views::View {
explicit ContentsContainer(views::View* active);
virtual ~ContentsContainer();
+ // View positioned above the contents. The returned view is owned by this.
+ // The header is sized to the preferred height of its single child (width
+ // fills the available width). If the child is not visible the header is
+ // sized to an empty rect.
+ views::View* header();
+
// Makes the preview view the active view and nulls out the old active view.
// It's assumed the caller will delete or remove the old active view
// separately.
@@ -48,6 +54,9 @@ class ContentsContainer : public views::View {
virtual std::string GetClassName() const OVERRIDE;
private:
+ class HeaderView;
+
+ HeaderView* header_;
views::View* active_;
views::View* preview_;
content::WebContents* preview_web_contents_;

Powered by Google App Engine
This is Rietveld 408576698