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

Unified Diff: ash/common/wm/overview/window_selector_item.cc

Issue 2358833003: [ash-md] Corrects initial positioning of the overview headers (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/overview/window_selector_item.cc
diff --git a/ash/common/wm/overview/window_selector_item.cc b/ash/common/wm/overview/window_selector_item.cc
index aa0431a9a2c38e9568a4240cab27b295cf4db26b..001a09f3173785f5d395084ec9f411e65a6fd54a 100644
--- a/ash/common/wm/overview/window_selector_item.cc
+++ b/ash/common/wm/overview/window_selector_item.cc
@@ -496,6 +496,8 @@ void WindowSelectorItem::ShowWindowOnExit() {
void WindowSelectorItem::PrepareForOverview() {
transform_window_.PrepareForOverview();
+ UpdateHeaderLayout(HeaderFadeInMode::ENTER,
+ OverviewAnimationType::OVERVIEW_ANIMATION_NONE);
}
bool WindowSelectorItem::Contains(const WmWindow* target) const {
@@ -765,8 +767,6 @@ void WindowSelectorItem::CreateWindowLabel(const base::string16& title) {
window_label_->GetLayer()->Add(shadow_->layer());
}
window_label_->GetLayer()->SetMasksToBounds(false);
- UpdateHeaderLayout(HeaderFadeInMode::ENTER,
- OverviewAnimationType::OVERVIEW_ANIMATION_NONE);
} else {
// Indicate that the label will be drawn onto a transparent background
// (disables subpixel antialiasing).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698