OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/toolbar/media_router_action.h" | 5 #include "chrome/browser/ui/toolbar/media_router_action.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/ui/toolbar/toolbar_action_view_delegate.h" | 8 #include "chrome/browser/ui/toolbar/toolbar_action_view_delegate.h" |
9 #include "chrome/browser/ui/webui/media_router/media_router_dialog_controller.h" | 9 #include "chrome/browser/ui/webui/media_router/media_router_dialog_controller.h" |
10 #include "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void MediaRouterAction::UpdateState() { | 93 void MediaRouterAction::UpdateState() { |
94 } | 94 } |
95 | 95 |
96 MediaRouterDialogController* | 96 MediaRouterDialogController* |
97 MediaRouterAction::GetMediaRouterDialogController() { | 97 MediaRouterAction::GetMediaRouterDialogController() { |
98 DCHECK(delegate_); | 98 DCHECK(delegate_); |
99 content::WebContents* web_contents = delegate_->GetCurrentWebContents(); | 99 content::WebContents* web_contents = delegate_->GetCurrentWebContents(); |
100 DCHECK(web_contents); | 100 DCHECK(web_contents); |
101 return MediaRouterDialogController::GetOrCreateForWebContents(web_contents); | 101 return MediaRouterDialogController::GetOrCreateForWebContents(web_contents); |
102 } | 102 } |
| 103 |
| 104 bool MediaRouterAction::DisabledClickOpensMenu() const { |
| 105 return false; |
| 106 } |
OLD | NEW |