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

Side by Side Diff: chrome/browser/media/router/media_cast_mode.cc

Issue 949293004: Add media router common classes and unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chunkier CL Created 5 years, 10 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/media/router/media_cast_mode.h"
6
7 #include "base/logging.h"
8
9 namespace media_router {
10
11 // TODO(haibinlu): use localized string.
12 std::string MediaCastModeToTitle(MediaCastMode mode) {
13 switch (mode) {
14 case MediaCastMode::APP_CAST:
15 return "Cast [website here]";
16 case MediaCastMode::SCREEN_WINDOW_MIRROR:
17 return "Cast screen/window";
18 case MediaCastMode::SOUND_OPTIMIZED_TAB_MIRROR:
19 return "Cast this tab (optimize for audio)";
20 case MediaCastMode::TAB_MIRROR:
21 return "Cast this tab";
22 default:
23 NOTREACHED();
24 return "";
25 }
26 }
27
28 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698