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

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

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up include and modify comment. Created 3 years, 10 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/wm/overview/window_grid.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_selector.cc
diff --git a/ash/common/wm/overview/window_selector.cc b/ash/common/wm/overview/window_selector.cc
index 8e1d743effe3be123c1cd158c299d2798f6fd5a0..1905eaff8cc5607980c5f5d6d988e13c79a3597d 100644
--- a/ash/common/wm/overview/window_selector.cc
+++ b/ash/common/wm/overview/window_selector.cc
@@ -22,7 +22,6 @@
#include "ash/common/wm/switchable_windows.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm/wm_screen_util.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
@@ -197,7 +196,7 @@ views::Widget* CreateTextFilter(views::TextfieldController* controller,
gfx::Transform transform;
transform.Translate(0, -(*text_filter_bottom));
WmWindow* text_filter_widget_window =
- WmLookup::Get()->GetWindowForWidget(widget);
+ WmWindow::Get(widget->GetNativeWindow());
text_filter_widget_window->SetOpacity(0);
text_filter_widget_window->SetTransform(transform);
widget->Show();
@@ -623,7 +622,7 @@ void WindowSelector::ContentsChanged(views::Textfield* sender,
}
WmWindow* WindowSelector::GetTextFilterWidgetWindow() {
- return WmLookup::Get()->GetWindowForWidget(text_filter_widget_.get());
+ return WmWindow::Get(text_filter_widget_->GetNativeWindow());
}
void WindowSelector::PositionWindows(bool animate) {
« no previous file with comments | « ash/common/wm/overview/window_grid.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