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

Unified Diff: ui/views/mus/window_manager_connection.cc

Issue 2392063003: mus: Use TooltipManagerAura in NativeWidgetMus. (Closed)
Patch Set: add braces Created 4 years, 2 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: ui/views/mus/window_manager_connection.cc
diff --git a/ui/views/mus/window_manager_connection.cc b/ui/views/mus/window_manager_connection.cc
index 8c4cf85d690d545d2fa9dd9e3da5723597200e45..446c9eafd0fbd9420154073b14e2a728bf2e46e1 100644
--- a/ui/views/mus/window_manager_connection.cc
+++ b/ui/views/mus/window_manager_connection.cc
@@ -167,6 +167,15 @@ gfx::Point WindowManagerConnection::GetCursorScreenPoint() {
return client_->GetCursorScreenPoint();
}
+ui::Window* WindowManagerConnection::GetWindowAtScreenPoint(
+ const gfx::Point& point) {
+ for (ui::Window* root : GetRoots()) {
+ if (root->bounds().Contains(point))
sky 2016/10/05 16:10:52 Don't you want to recurse? Also, you should offset
Elliot Glaysher 2016/10/06 18:00:08 Done.
+ return root;
+ }
+ return nullptr;
+}
+
std::unique_ptr<OSExchangeData::Provider>
WindowManagerConnection::BuildProvider() {
return base::MakeUnique<OSExchangeDataProviderMus>();

Powered by Google App Engine
This is Rietveld 408576698