Commit 09c2eddf authored by Mike Wasserman's avatar Mike Wasserman Committed by Commit Bot

views: Make the radio or check in MenuItemView clickable.

Make the menu item handle click events on its icon view.
(support clicking on a radio/check icon in a menu item)

Bug: 768449
Test: See bug.
Change-Id: I1da3ce9baad36b1e35278e3a7c466e96c4e00876
Reviewed-on: https://chromium-review.googlesource.com/691175Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Michael Wasserman <msw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505402}
parent 549c7f97
...@@ -696,6 +696,7 @@ void MenuItemView::Init(MenuItemView* parent, ...@@ -696,6 +696,7 @@ void MenuItemView::Init(MenuItemView* parent,
type_ == RADIO || type_ == RADIO ||
(type_ == CHECKBOX && GetDelegate()->IsItemChecked(GetCommand())); (type_ == CHECKBOX && GetDelegate()->IsItemChecked(GetCommand()));
radio_check_image_view_->SetVisible(show_check_radio_icon); radio_check_image_view_->SetVisible(show_check_radio_icon);
radio_check_image_view_->set_can_process_events_within_subtree(false);
AddChildView(radio_check_image_view_); AddChildView(radio_check_image_view_);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment