Close wrench menu when Media Router Action clicked in Views.
commit4b16903562a662feaecee4fc7be7092866136b67
authorapacible <apacible@chromium.org>
Mon, 20 Jul 2015 16:32:36 +0000 (20 09:32 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 20 Jul 2015 16:33:18 +0000 (20 16:33 +0000)
tree512d575a18a5530daf38acb4a3f7db3ab38fd958
parenta372a2e1b7fb7aace2726d47687d3679fc61f970
Close wrench menu when Media Router Action clicked in Views.

Currently, on |ExecuteAction|, the Media Router dialog is opened and the wrench menu stays open. The menu must be closed with a second click. With this change, the wrench menu closes automatically.

This change also adds a platform delegate to the Media Router Action for platform dependent implementations.

This CL does not include the Cocoa implementation.

BUG=508546

Review URL: https://codereview.chromium.org/1228223002

Cr-Commit-Position: refs/heads/master@{#339457}
13 files changed:
chrome/browser/ui/toolbar/component_toolbar_actions_browsertest.cc
chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc
chrome/browser/ui/toolbar/component_toolbar_actions_factory.h
chrome/browser/ui/toolbar/media_router_action.cc
chrome/browser/ui/toolbar/media_router_action.h
chrome/browser/ui/toolbar/media_router_action_platform_delegate.cc [new file with mode: 0644]
chrome/browser/ui/toolbar/media_router_action_platform_delegate.h [new file with mode: 0644]
chrome/browser/ui/toolbar/toolbar_actions_bar.cc
chrome/browser/ui/toolbar/wrench_menu_model.cc
chrome/browser/ui/views/media_router/media_router_ui_browsertest.cc
chrome/browser/ui/views/toolbar/media_router_action_platform_delegate_views.cc [new file with mode: 0644]
chrome/browser/ui/views/toolbar/media_router_action_platform_delegate_views.h [new file with mode: 0644]
chrome/chrome_browser_ui.gypi