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

Unified Diff: ui/wm/core/masked_window_targeter.cc

Issue 1119423003: Refactors away method implementations in ui::EventTargeter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactors ui::EventTargeter (rebased) Created 5 years, 6 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/wm/core/masked_window_targeter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/masked_window_targeter.cc
diff --git a/ui/wm/core/masked_window_targeter.cc b/ui/wm/core/masked_window_targeter.cc
index 5cbdb1993b16b91adb5936500658f98b40d4fbd6..74e8bc8a7c1fad5ad21a00b1d484e70aa415f215 100644
--- a/ui/wm/core/masked_window_targeter.cc
+++ b/ui/wm/core/masked_window_targeter.cc
@@ -5,6 +5,7 @@
#include "ui/wm/core/masked_window_targeter.h"
#include "ui/aura/window.h"
+#include "ui/events/event.h"
#include "ui/gfx/path.h"
namespace wm {
@@ -16,9 +17,8 @@ MaskedWindowTargeter::MaskedWindowTargeter(aura::Window* masked_window)
MaskedWindowTargeter::~MaskedWindowTargeter() {}
bool MaskedWindowTargeter::EventLocationInsideBounds(
- ui::EventTarget* target,
+ aura::Window* window,
const ui::LocatedEvent& event) const {
- aura::Window* window = static_cast<aura::Window*>(target);
if (window == masked_window_) {
gfx::Path mask;
if (!GetHitTestMask(window, &mask))
« no previous file with comments | « ui/wm/core/masked_window_targeter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698