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

Unified Diff: ui/views/widget/widget.h

Issue 2880623002: [ash-md] Fixed MenuButton focus appearing after dismissing menus. (Closed)
Patch Set: Added check for null Widget. Created 3 years, 7 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/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 9aba4e4918917cd58a752d9d1ddaea23b0b4a548..23d29ebf8ca6458120b582c7f9f7cb482838afd6 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -768,8 +768,11 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
gfx::Rect GetWorkAreaBoundsInScreen() const;
// Creates and dispatches synthesized mouse move event using the current
- // mouse location to refresh hovering status in the widget.
- void SynthesizeMouseMoveEvent();
+ // mouse location to refresh hovering status in the widget. By default events
+ // won't be synthesized if the current mouse location is outside the bounds of
+ // |this|, however you can force the events to be synthesized with
+ // |forced|=true.
+ void SynthesizeMouseMoveEvent(bool force = false);
// Whether the widget supports translucency.
bool IsTranslucentWindowOpacitySupported() const;

Powered by Google App Engine
This is Rietveld 408576698