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

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

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
« ui/views/controls/button/menu_button.cc ('K') | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index fbce29ee69aa9f0f31d785434e195aa5e5e9b49d..cd49a447d10b7729fa59a9fc91b3fd4172590c64 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -983,10 +983,10 @@ gfx::Rect Widget::GetWorkAreaBoundsInScreen() const {
return native_widget_->GetWorkAreaBoundsInScreen();
}
-void Widget::SynthesizeMouseMoveEvent() {
+void Widget::SynthesizeMouseMoveEvent(bool force) {
// In screen coordinate.
gfx::Point mouse_location = EventMonitor::GetLastMouseLocation();
- if (!GetWindowBoundsInScreen().Contains(mouse_location))
+ if (!force && !GetWindowBoundsInScreen().Contains(mouse_location))
return;
// Convert: screen coordinate -> widget coordinate.
« ui/views/controls/button/menu_button.cc ('K') | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698