OLD | NEW |
(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 |
OLD | NEW |