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

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

Issue 1149893020: [Media Router] Implement MediaRouterAction + MediaRouterUI tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed pkasting's 2nd comments Created 5 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/toolbar/media_router_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/media_router_action.h
diff --git a/chrome/browser/ui/toolbar/media_router_action.h b/chrome/browser/ui/toolbar/media_router_action.h
index da2bc24c089ecd817800d93b73b2c45dd71ffbb7..70e216499cf5ffca47d3067ffc7408a38f4c947c 100644
--- a/chrome/browser/ui/toolbar/media_router_action.h
+++ b/chrome/browser/ui/toolbar/media_router_action.h
@@ -7,6 +7,10 @@
#include "chrome/browser/ui/toolbar/toolbar_action_view_controller.h"
+namespace media_router {
+class MediaRouterDialogController;
+} // namespace media_router
+
// The class for the Media Router component action that will be shown in
// the toolbar.
class MediaRouterAction : public ToolbarActionViewController {
@@ -35,6 +39,11 @@ class MediaRouterAction : public ToolbarActionViewController {
void UpdateState() override;
private:
+ // Returns a reference to the MediaRouterDialogController associated with
+ // |delegate_|'s current WebContents. Guaranteed to be non-null.
+ // |delegate_| and its current WebContents must not be null.
+ media_router::MediaRouterDialogController* GetMediaRouterDialogController();
+
const std::string id_;
const base::string16 name_;
« no previous file with comments | « no previous file | chrome/browser/ui/toolbar/media_router_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698