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

Unified Diff: athena/content/app_activity.cc

Issue 518673007: Make activities have a thick border when in overview mode part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_overview2
Patch Set: Created 6 years, 3 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: athena/content/app_activity.cc
diff --git a/athena/content/app_activity.cc b/athena/content/app_activity.cc
index 62ecb2cf859ab326e85c897d97ba4b4aab4bf78a..5494f82ed20a218608ac445b3ae76cd701f42a5a 100644
--- a/athena/content/app_activity.cc
+++ b/athena/content/app_activity.cc
@@ -138,6 +138,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);
oshima 2014/09/03 22:36:12 I wonder if this should be default on athena. When
pkotwicz 2014/09/05 16:38:50 This should not be the default. Fast resize does n
+}
+
+void AppActivity::ResetContentsView() {
+ web_view_->SetFastResize(false);
+ web_view_->Layout();
+}
+
void AppActivity::TitleWasSet(content::NavigationEntry* entry,
bool explicit_set) {
ActivityManager::Get()->UpdateActivity(this);

Powered by Google App Engine
This is Rietveld 408576698