refactor: Chromium code style for enum classes (#26165)
This commit is contained in:
parent
dbf2931f0e
commit
1c99a9b425
34 changed files with 300 additions and 295 deletions
|
@ -25,15 +25,15 @@ namespace {
|
|||
UINT ConvertIconType(electron::TrayIcon::IconType type) {
|
||||
using IconType = electron::TrayIcon::IconType;
|
||||
switch (type) {
|
||||
case IconType::None:
|
||||
case IconType::kNone:
|
||||
return NIIF_NONE;
|
||||
case IconType::Info:
|
||||
case IconType::kInfo:
|
||||
return NIIF_INFO;
|
||||
case IconType::Warning:
|
||||
case IconType::kWarning:
|
||||
return NIIF_WARNING;
|
||||
case IconType::Error:
|
||||
case IconType::kError:
|
||||
return NIIF_ERROR;
|
||||
case IconType::Custom:
|
||||
case IconType::kCustom:
|
||||
return NIIF_USER;
|
||||
default:
|
||||
NOTREACHED() << "Invalid icon type";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue