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

Unified Diff: chrome/browser/ui/views/toolbar/media_router_action_platform_delegate_views.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: Fix browser test. 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/views/toolbar/media_router_action_platform_delegate_views.h
diff --git a/chrome/browser/ui/views/toolbar/media_router_action_platform_delegate_views.h b/chrome/browser/ui/views/toolbar/media_router_action_platform_delegate_views.h
new file mode 100644
index 0000000000000000000000000000000000000000..6d39c8d2364dbaa1e29624261571f57decca81b0
--- /dev/null
+++ b/chrome/browser/ui/views/toolbar/media_router_action_platform_delegate_views.h
@@ -0,0 +1,27 @@
+// 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_VIEWS_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_VIEWS_H_
+#define CHROME_BROWSER_UI_VIEWS_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_VIEWS_H_
+
+#include "chrome/browser/ui/toolbar/media_router_action_platform_delegate.h"
+
+// The Views platform delegate for the Media Router component action.
+class MediaRouterActionPlatformDelegateViews :
+ public MediaRouterActionPlatformDelegate {
+ public:
+ explicit MediaRouterActionPlatformDelegateViews(Browser* browser);
+ ~MediaRouterActionPlatformDelegateViews() override;
+
+ // MediaRouterActionPlatformDelegate:
+ void CloseOverflowMenuIfOpen() override;
+
+ private:
+ // The corresponding browser.
+ Browser* browser_;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaRouterActionPlatformDelegateViews);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698