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

Unified Diff: ui/aura/window_targeter.h

Issue 2172363002: Created min size for print preview dialog and modified to allow the Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to CrOS only. Created 4 years, 4 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/aura/window_targeter.h
diff --git a/ui/aura/window_targeter.h b/ui/aura/window_targeter.h
index 048d8ad2e472aca897fccab4dfb8c125180d45ab..b71817e9d13c330f83e88e2500991a59696f098b 100644
--- a/ui/aura/window_targeter.h
+++ b/ui/aura/window_targeter.h
@@ -14,6 +14,10 @@ class KeyEvent;
class LocatedEvent;
} // namespace ui
+namespace gfx {
+class Point;
+} // namespace gfx
+
namespace aura {
class Window;
@@ -60,6 +64,15 @@ class AURA_EXPORT WindowTargeter : public ui::EventTargeter {
ui::EventTarget* FindNextBestTarget(ui::EventTarget* previous_target,
ui::Event* event) override;
+ // Returns whether the location of the event is in an actionable region of
+ // |window| or of any of its children. Does not assume that children are
+ // restricted to the bounds of their modal parent windows. Note that |point|
+ // is in |window|'s parent's coordinate system and |location| is the original
+ // event location.
+ bool EventLocationInsideBoundsRecursive(Window* window,
+ gfx::Point point,
+ gfx::Point location);
+
private:
Window* FindTargetForKeyEvent(Window* root_window, const ui::KeyEvent& event);
Window* FindTargetForNonKeyEvent(Window* root_window, ui::Event* event);

Powered by Google App Engine
This is Rietveld 408576698