Close wrench menu when Media Router Action clicked in Cocoa.
[chromium-blink-merge.git] / chrome / browser / ui / toolbar / media_router_action_platform_delegate.h
bloba893c211fc55d6fe2700e74ef01a81e66118f4e3
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_
8 #include "base/memory/scoped_ptr.h"
10 class Browser;
12 class MediaRouterActionPlatformDelegate {
13 public:
14 MediaRouterActionPlatformDelegate() {}
15 virtual ~MediaRouterActionPlatformDelegate() {}
17 // Returns a created MediaRouterActionPlatformDelegate. This is defined in the
18 // platform-specific implementation for the class.
19 static scoped_ptr<MediaRouterActionPlatformDelegate> Create(Browser* browser);
21 // Closes the overflow menu, if it was open.
22 virtual void CloseOverflowMenuIfOpen() = 0;
25 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_