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

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

Issue 11428083: Stack preview back at top after an active contents switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/views/frame/contents_container.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/contents_container.cc
diff --git a/chrome/browser/ui/views/frame/contents_container.cc b/chrome/browser/ui/views/frame/contents_container.cc
index 26c67000295a9fb3882a3109731b60278d6b8a0e..c3519857c9f03d2153bef689519993a2bb60aeca 100644
--- a/chrome/browser/ui/views/frame/contents_container.cc
+++ b/chrome/browser/ui/views/frame/contents_container.cc
@@ -54,6 +54,14 @@ void ContentsContainer::SetPreview(views::WebView* preview,
Layout();
}
+void ContentsContainer::MaybeStackPreviewAtTop() {
+ if (preview_) {
+ RemoveChildView(preview_);
sky 2012/11/29 20:57:55 Will this result in sending a bunch of messages to
+ AddChildView(preview_);
+ Layout();
+ }
+}
+
void ContentsContainer::SetActiveTopMargin(int margin) {
if (active_top_margin_ == margin)
return;
« no previous file with comments | « chrome/browser/ui/views/frame/contents_container.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698