| Index: ui/views/controls/tree/tree_view.cc
|
| diff --git a/ui/views/controls/tree/tree_view.cc b/ui/views/controls/tree/tree_view.cc
|
| index e60b9c0488b76d795a48e36a5e71360757391cdf..d5df30844f4fcfcb3d926e630943fdb8c3995d8b 100644
|
| --- a/ui/views/controls/tree/tree_view.cc
|
| +++ b/ui/views/controls/tree/tree_view.cc
|
| @@ -380,10 +380,11 @@ void TreeView::OnGestureEvent(ui::GestureEvent* event) {
|
| }
|
| }
|
|
|
| -void TreeView::ShowContextMenu(const gfx::Point& p, bool is_mouse_gesture) {
|
| +void TreeView::ShowContextMenu(const gfx::Point& p,
|
| + ui::ContextMenuSourceType source_type) {
|
| if (!model_)
|
| return;
|
| - if (is_mouse_gesture) {
|
| + if (source_type == ui::CONTEXT_MENU_SOURCE_MOUSE) {
|
| // Only invoke View's implementation (which notifies the
|
| // ContextMenuController) if over a node.
|
| gfx::Point local_point(p);
|
| @@ -397,7 +398,7 @@ void TreeView::ShowContextMenu(const gfx::Point& p, bool is_mouse_gesture) {
|
| if (!bounds.Contains(local_point))
|
| return;
|
| }
|
| - View::ShowContextMenu(p, is_mouse_gesture);
|
| + View::ShowContextMenu(p, source_type);
|
| }
|
|
|
| void TreeView::GetAccessibleState(ui::AccessibleViewState* state) {
|
|
|