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

Side by Side Diff: chrome/browser/ui/toolbar/media_router_action.cc

Issue 1216053013: [Extension Toolbar Redesign] Wants to act treatment, redux - left click (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/media_router_action.h ('k') | chrome/browser/ui/toolbar/test_toolbar_action_view_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698