ui::Display cleanup: some enums --> enum classes

https://chromium-review.googlesource.com/915211
This commit is contained in:
Aleksei Kuzmin 2018-04-11 12:39:03 +02:00 committed by Samuel Attard
parent 4602d940cf
commit 1a11bb936b

View file

@ -87,9 +87,9 @@ struct Converter<display::Display::TouchSupport> {
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
const display::Display::TouchSupport& val) {
switch (val) {
case display::Display::TOUCH_SUPPORT_AVAILABLE:
case display::Display::TouchSupport::AVAILABLE:
return StringToV8(isolate, "available");
case display::Display::TOUCH_SUPPORT_UNAVAILABLE:
case display::Display::TouchSupport::UNAVAILABLE:
return StringToV8(isolate, "unavailable");
default:
return StringToV8(isolate, "unknown");