Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 "ash/common/system/chromeos/palette/palette_ids.h" | |
| 6 #include "base/logging.h" | |
| 7 | |
| 8 namespace ash { | |
| 9 | |
| 10 std::string PaletteToolIdToString(PaletteToolId tool_id) { | |
| 11 switch (tool_id) { | |
| 12 case PaletteToolId::NONE: | |
| 13 return "NONE"; | |
| 14 case PaletteToolId::CREATE_NEW_NOTE: | |
| 15 return "CREATE_NEW_NOTE"; | |
| 16 case PaletteToolId::SCREENSHOT: | |
| 17 return "SCREENSHOT"; | |
| 18 case PaletteToolId::CAPTURE_REGION: | |
| 19 return "CAPTURE_REGION"; | |
| 20 case PaletteToolId::PRESENTATION: | |
| 21 return "PRESENTATION"; | |
| 22 case PaletteToolId::MAGNIFY: | |
| 23 return "MAGNIFY"; | |
| 24 } | |
| 25 | |
| 26 NOTREACHED(); | |
| 27 return ""; | |
|
oshima
2016/07/14 13:58:31
std::string()
jdufault
2016/07/18 20:39:57
Done.
| |
| 28 } | |
| 29 | |
| 30 std::string PaletteGroupToString(PaletteGroup group) { | |
| 31 switch (group) { | |
| 32 case PaletteGroup::ACTION: | |
| 33 return "ACTION"; | |
| 34 case PaletteGroup::MODE: | |
| 35 return "MODE"; | |
| 36 } | |
| 37 | |
| 38 NOTREACHED(); | |
| 39 return ""; | |
|
oshima
2016/07/14 13:58:31
ditto
jdufault
2016/07/18 20:39:57
Done.
| |
| 40 } | |
| 41 | |
| 42 } // namespace ash | |
| OLD | NEW |