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

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

Issue 13684002: cros: Instant extended support for immersive fullscreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 8 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 410ec0c10c9eb79bc0696e630ce689bd7b8f460a..04a524962cd630b6f97ae05b95752c977839ee71 100644
--- a/chrome/browser/ui/views/frame/contents_container.h
+++ b/chrome/browser/ui/views/frame/contents_container.h
@@ -63,6 +63,10 @@ class ContentsContainer : public views::View,
// vertically by |margin| pixels in the |ContentsContainer|.
void SetActiveTopMargin(int margin);
+ // Sets a vertical offset of |margin| pixels for the |overlay_| content,
+ // similar to SetActiveTopMargin().
+ void SetOverlayTopMargin(int margin);
+
// Returns the bounds the overlay would be shown at.
gfx::Rect GetOverlayBounds() const;
@@ -95,6 +99,11 @@ class ContentsContainer : public views::View,
// overlay overlap the bookmark bar on the new tab page.
int active_top_margin_;
+ // The margin between the top of this view and the overlay view. Used to
+ // push down the instant extended suggestions during an immersive fullscreen
+ // reveal.
+ int overlay_top_margin_;
+
// The desired height of the overlay and units.
int overlay_height_;
InstantSizeUnits overlay_height_units_;

Powered by Google App Engine
This is Rietveld 408576698