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

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

Issue 873513002: [Views] Make MenuButton track its desired state while pressed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/views/controls/button/menu_button_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index 88c60906b7268d02bffd85fdb683ef05c9bca77a..e48540bda590229f9cc3f5eec2e52ecbe6d12236 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -870,7 +870,7 @@ void DesktopNativeWidgetAura::SetCursor(gfx::NativeCursor cursor) {
}
bool DesktopNativeWidgetAura::IsMouseEventsEnabled() const {
- if (!content_window_)
+ if (!content_window_ || !host_)
sky 2015/01/24 00:00:36 This has me worried, and at the least is worth a c
Devlin 2015/01/24 00:11:48 Yeah, I'm not real keen on it either. Reason: - On
return false;
aura::client::CursorClient* cursor_client =
aura::client::GetCursorClient(host_->window());
« no previous file with comments | « ui/views/controls/button/menu_button_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698