Index: athena/content/app_activity.cc |
diff --git a/athena/content/app_activity.cc b/athena/content/app_activity.cc |
index 478bf927d3a8406c7a69d072b5e0e45435a41240..e557b619514f1d72a68b4990b2095a8374793dce 100644 |
--- a/athena/content/app_activity.cc |
+++ b/athena/content/app_activity.cc |
@@ -140,6 +140,17 @@ gfx::ImageSkia AppActivity::GetOverviewModeImage() { |
return overview_mode_image_; |
} |
+void AppActivity::PrepareContentsForOverview() { |
+ // Turn on fast resizing to avoid re-laying out the web contents when |
+ // entering / exiting overview mode. |
+ web_view_->SetFastResize(true); |
+} |
+ |
+void AppActivity::ResetContentsView() { |
+ web_view_->SetFastResize(false); |
+ web_view_->Layout(); |
+} |
+ |
AppActivity::~AppActivity() { |
// If this activity is registered, we unregister it now. |
if (app_activity_registry_) |