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

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

Issue 2799993003: Removes couple of methods from WmWindow (Closed)
Patch Set: Created 3 years, 8 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 | « ash/common/devtools/ash_devtools_unittest.cc ('k') | ash/common/wm/overview/window_selector_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/overview/window_grid.cc
diff --git a/ash/common/wm/overview/window_grid.cc b/ash/common/wm/overview/window_grid.cc
index eb7dd5dde9997d36bebfef8e33ced47f1db6a6f4..034ecda00da3174e3f693ded0dc18787637b5f4d 100644
--- a/ash/common/wm/overview/window_grid.cc
+++ b/ash/common/wm/overview/window_grid.cc
@@ -539,7 +539,8 @@ bool WindowGrid::Contains(const WmWindow* window) const {
void WindowGrid::FilterItems(const base::string16& pattern) {
base::i18n::FixedPatternStringSearchIgnoringCaseAndAccents finder(pattern);
for (const auto& window : window_list_) {
- if (finder.Search(window->GetWindow()->GetTitle(), nullptr, nullptr)) {
+ if (finder.Search(window->GetWindow()->aura_window()->GetTitle(), nullptr,
+ nullptr)) {
window->SetDimmed(false);
} else {
window->SetDimmed(true);
@@ -651,7 +652,7 @@ void WindowGrid::InitShieldWidget() {
WmWindow* widget_window = WmWindow::Get(shield_widget_->GetNativeWindow());
const gfx::Rect bounds = widget_window->GetParent()->GetBounds();
widget_window->SetBounds(bounds);
- widget_window->SetName("OverviewModeShield");
+ widget_window->aura_window()->SetName("OverviewModeShield");
ui::ScopedLayerAnimationSettings animation_settings(
widget_window->GetLayer()->GetAnimator());
@@ -674,7 +675,7 @@ void WindowGrid::InitSelectionWidget(WindowSelector::Direction direction) {
gfx::Vector2d fade_out_direction =
GetSlideVectorForFadeIn(direction, target_bounds);
widget_window->SetBounds(target_bounds - fade_out_direction);
- widget_window->SetName("OverviewModeSelector");
+ widget_window->aura_window()->SetName("OverviewModeSelector");
selector_shadow_.reset(new ::wm::Shadow());
selector_shadow_->Init(::wm::ShadowElevation::LARGE);
« no previous file with comments | « ash/common/devtools/ash_devtools_unittest.cc ('k') | ash/common/wm/overview/window_selector_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698