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

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

Issue 10915217: Hook up SetInstantPreviewHeight for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor fixes. Created 8 years, 3 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 3227688ad56d91f6b0f1df7737597a026d066252..2febbc667c5b11fe3a3793d7722f8e0b7f12bcb1 100644
--- a/chrome/browser/ui/views/frame/contents_container.h
+++ b/chrome/browser/ui/views/frame/contents_container.h
@@ -45,6 +45,9 @@ class ContentsContainer : public views::View {
void SetPreview(views::WebView* preview,
content::WebContents* preview_web_contents);
+ // Sets the desired height of the current preview view.
+ void SetPreviewHeight(int value, bool is_percent);
+
content::WebContents* preview_web_contents() const {
return preview_web_contents_;
}
@@ -70,6 +73,10 @@ class ContentsContainer : public views::View {
// preview overlap the bookmark bar on the new tab page.
int active_top_margin_;
+ // The desired height of the preview. If negative or greater than height(),
+ // the preview will fill the container.
+ int preview_height_;
+
DISALLOW_COPY_AND_ASSIGN(ContentsContainer);
};

Powered by Google App Engine
This is Rietveld 408576698