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

Unified Diff: athena/content/web_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/web_activity.cc
diff --git a/athena/content/web_activity.cc b/athena/content/web_activity.cc
index 2d58a7246de404acfb14c297f765e78d0344dab0..9edd4fc69ca8eee1635c06f0427f178da441dab4 100644
--- a/athena/content/web_activity.cc
+++ b/athena/content/web_activity.cc
@@ -458,6 +458,17 @@ gfx::ImageSkia WebActivity::GetOverviewModeImage() {
return overview_mode_image_;
}
+void WebActivity::PrepareContentsForOverview() {
+ // Turn on fast resizing to avoid re-laying out the web contents when
+ // entering / exiting overview mode.
+ web_view_->SetFastResize(true);
+}
+
+void WebActivity::ResetContentsView() {
+ web_view_->SetFastResize(false);
+ web_view_->Layout();
+}
+
void WebActivity::TitleWasSet(content::NavigationEntry* entry,
bool explicit_set) {
ActivityManager::Get()->UpdateActivity(this);

Powered by Google App Engine
This is Rietveld 408576698