| Index: chrome/browser/ui/toolbar/media_router_action_platform_delegate.h
|
| diff --git a/chrome/browser/ui/toolbar/media_router_action_platform_delegate.h b/chrome/browser/ui/toolbar/media_router_action_platform_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6e0277aed968072ef7983acbc0492210fcc39a60
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/toolbar/media_router_action_platform_delegate.h
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_
|
| +#define CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +
|
| +class Browser;
|
| +
|
| +class MediaRouterActionPlatformDelegate {
|
| + public:
|
| +#if defined(OS_MACOSX)
|
| + explicit MediaRouterActionPlatformDelegate(Browser* browser);
|
| +#endif
|
| + MediaRouterActionPlatformDelegate();
|
| + virtual ~MediaRouterActionPlatformDelegate() {}
|
| +
|
| + // Returns a created MediaRouterActionPlatformDelegate. This is defined in the
|
| + // platform-specific implementation for the class.
|
| + static scoped_ptr<MediaRouterActionPlatformDelegate> Create(Browser* browser);
|
| +
|
| + // Closes the overflow menu, if it was open.
|
| + virtual void CloseOverflowMenuIfOpen() = 0;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_
|
|
|