Chromium Code Reviews| 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; |