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

Unified Diff: chrome/browser/ui/views/tabs/window_finder_mus.cc

Issue 2578893003: Converts chrome to aura-mus (Closed)
Patch Set: merge again Created 4 years 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: chrome/browser/ui/views/tabs/window_finder_mus.cc
diff --git a/chrome/browser/ui/views/tabs/window_finder_mus.cc b/chrome/browser/ui/views/tabs/window_finder_mus.cc
index 44614f52fce0d0505675428538ad295e0f16ef8d..d97cfb44923a693bf115427c82cd5562ca377697 100644
--- a/chrome/browser/ui/views/tabs/window_finder_mus.cc
+++ b/chrome/browser/ui/views/tabs/window_finder_mus.cc
@@ -6,9 +6,9 @@
#include "content/public/common/service_manager_connection.h" // nogncheck
#include "services/service_manager/runner/common/client_util.h" // nogncheck
+#include "ui/aura/mus/window_tree_client.h"
#include "ui/aura/window.h"
-#include "ui/views/mus/native_widget_mus.h"
-#include "ui/views/mus/window_manager_connection.h"
+#include "ui/views/mus/mus_client.h"
bool GetLocalProcessWindowAtPointMus(
const gfx::Point& screen_point,
@@ -20,14 +20,14 @@ bool GetLocalProcessWindowAtPointMus(
if (!service_manager_connection || !service_manager::ServiceManagerIsRemote())
return false;
- std::set<ui::Window*> mus_windows =
- views::WindowManagerConnection::Get()->GetRoots();
+ std::set<aura::Window*> root_windows =
+ views::MusClient::Get()->window_tree_client()->GetRoots();
// TODO(erg): Needs to deal with stacking order here.
// For every mus window, look at the associated aura window and see if we're
// in that.
- for (ui::Window* mus : mus_windows) {
- views::Widget* widget = views::NativeWidgetMus::GetWidgetForWindow(mus);
+ for (aura::Window* root : root_windows) {
+ views::Widget* widget = views::Widget::GetWidgetForNativeView(root);
if (widget && widget->GetWindowBoundsInScreen().Contains(screen_point)) {
aura::Window* content_window = widget->GetNativeWindow();

Powered by Google App Engine
This is Rietveld 408576698