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

Unified Diff: ui/aura/window.cc

Issue 602043006: aura: Move Window::ContainsMouse() implementation into the test API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « ui/aura/window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index fb25f62a3d24ed8e984851e5454033187a7baeb1..c4988e7beb6facbbdf890250fc7f20d11c300fb8 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -1443,16 +1443,6 @@ void Window::UpdateLayerName() {
#endif
}
-bool Window::ContainsMouse() {
- bool contains_mouse = false;
- if (IsVisible()) {
- WindowTreeHost* host = GetHost();
- contains_mouse = host &&
- ContainsPointInRoot(host->dispatcher()->GetLastMouseLocationInRoot());
- }
- return contains_mouse;
-}
-
const Window* Window::GetAncestorWithLayer(gfx::Vector2d* offset) const {
for (const aura::Window* window = this; window; window = window->parent()) {
if (window->layer())
« no previous file with comments | « ui/aura/window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698