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 4a24d79921243cf36f39a43831a02a8c567ee429..49f17df93fbea5be948ce1c7713946ac69a3bc8c 100644 |
--- a/chrome/browser/ui/views/frame/contents_container.h |
+++ b/chrome/browser/ui/views/frame/contents_container.h |
@@ -11,6 +11,7 @@ |
#include "base/compiler_specific.h" |
#include "chrome/common/instant_types.h" |
#include "chrome/common/search_types.h" |
+#include "ui/views/controls/webview/webview.h" |
#include "ui/views/view.h" |
namespace content { |
@@ -21,10 +22,6 @@ namespace gfx { |
class Rect; |
} |
-namespace views { |
-class WebView; |
-} |
- |
// ContentsContainer is responsible for managing the WebContents views. |
// ContentsContainer has up to two children: one for the currently active |
// WebContents and one for Instant's WebContents. |
@@ -56,7 +53,13 @@ class ContentsContainer : public views::View { |
return preview_web_contents_; |
} |
- // Sets the active top margin. |
+ int preview_height() const { |
+ return preview_ ? preview_->bounds().height() : 0; |
+ } |
+ |
+ // Sets the active top margin; the active WebView's y origin would be |
+ // positioned at this |margin|, causing the active WebView to be pushed down |
+ // vertically by |margin| pixels in the |ContentsContainer|. |
void SetActiveTopMargin(int margin); |
// Returns the bounds the preview would be shown at. |