Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3489)

Unified Diff: chrome/browser/ui/toolbar/media_router_action_platform_delegate.h

Issue 1228223002: Close wrench menu when Media Router Action clicked in Views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per rdevlin.cronin@'s comments. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..94de362e843cf96fd343efe2256ee4d454abc8b2
--- /dev/null
+++ b/chrome/browser/ui/toolbar/media_router_action_platform_delegate.h
@@ -0,0 +1,24 @@
+// 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:
+ 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_

Powered by Google App Engine
This is Rietveld 408576698