| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
If you can convince the media session/ARC (which I think uses this too?) folks that this is OK, meh. But as an IPC owner without domain-specific knowledge, it's hard for me to be sure that this is OK.
[Default] kNotInPictureInPicture,It's not obvious to me this should be the "default" state.
[Default] kDeprecatedUnknown,Isn't this deprecated? Is that OK?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
If you can convince the media session/ARC (which I think uses this too?) folks that this is OK, meh. But as an IPC owner without domain-specific knowledge, it's hard for me to be sure that this is OK.
The alternative is to add something like `[Default, MinVersion=123] kUnknown` to each of these, which is doable, but requires updating `switch` statements and so on throughout the codebase. It's also unclear to me exactly how `Default` and `MinVersion` interact in terms of addressing the underlying problem.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Andrew PaseltinerIf you can convince the media session/ARC (which I think uses this too?) folks that this is OK, meh. But as an IPC owner without domain-specific knowledge, it's hard for me to be sure that this is OK.
The alternative is to add something like `[Default, MinVersion=123] kUnknown` to each of these, which is doable, but requires updating `switch` statements and so on throughout the codebase. It's also unclear to me exactly how `Default` and `MinVersion` interact in terms of addressing the underlying problem.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Andrew PaseltinerIf you can convince the media session/ARC (which I think uses this too?) folks that this is OK, meh. But as an IPC owner without domain-specific knowledge, it's hard for me to be sure that this is OK.
The alternative is to add something like `[Default, MinVersion=123] kUnknown` to each of these, which is doable, but requires updating `switch` statements and so on throughout the codebase. It's also unclear to me exactly how `Default` and `MinVersion` interact in terms of addressing the underlying problem.
Ack. According to https://chromium.googlesource.com/chromium/src/+/HEAD/mojo/public/tools/bindings/README.md#Versioned-Enums:
For versioned enum definitions, the use of a [MinVersion] attribute is strictly for documentation purposes. It has no impact on the generated code.
@hide...@chromium.org Do you have any thoughts on the addition of new enum values here, like `[Default] kUnkown` versus trying to reuse existing values as the default?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Andrew PaseltinerIf you can convince the media session/ARC (which I think uses this too?) folks that this is OK, meh. But as an IPC owner without domain-specific knowledge, it's hard for me to be sure that this is OK.
Andrew PaseltinerThe alternative is to add something like `[Default, MinVersion=123] kUnknown` to each of these, which is doable, but requires updating `switch` statements and so on throughout the codebase. It's also unclear to me exactly how `Default` and `MinVersion` interact in terms of addressing the underlying problem.
Ack. According to https://chromium.googlesource.com/chromium/src/+/HEAD/mojo/public/tools/bindings/README.md#Versioned-Enums:
For versioned enum definitions, the use of a [MinVersion] attribute is strictly for documentation purposes. It has no impact on the generated code.
@hide...@chromium.org Do you have any thoughts on the addition of new enum values here, like `[Default] kUnkown` versus trying to reuse existing values as the default?
I think adding clear Unknown sounds like more explicit and understandable.
Though, I think it's better to hear from ARC team explicitly. cc: khmel@.
sorry for delayed reply. back from ooo.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Andrew PaseltinerIf you can convince the media session/ARC (which I think uses this too?) folks that this is OK, meh. But as an IPC owner without domain-specific knowledge, it's hard for me to be sure that this is OK.
Andrew PaseltinerThe alternative is to add something like `[Default, MinVersion=123] kUnknown` to each of these, which is doable, but requires updating `switch` statements and so on throughout the codebase. It's also unclear to me exactly how `Default` and `MinVersion` interact in terms of addressing the underlying problem.
Hidehiko AbeAck. According to https://chromium.googlesource.com/chromium/src/+/HEAD/mojo/public/tools/bindings/README.md#Versioned-Enums:
For versioned enum definitions, the use of a [MinVersion] attribute is strictly for documentation purposes. It has no impact on the generated code.
@hide...@chromium.org Do you have any thoughts on the addition of new enum values here, like `[Default] kUnkown` versus trying to reuse existing values as the default?
I think adding clear Unknown sounds like more explicit and understandable.
Though, I think it's better to hear from ARC team explicitly. cc: khmel@.
I like the Hidehiko's idea with adding Unknown as a default. To me it safer way to do.
Andrew PaseltinerIf you can convince the media session/ARC (which I think uses this too?) folks that this is OK, meh. But as an IPC owner without domain-specific knowledge, it's hard for me to be sure that this is OK.
Andrew PaseltinerThe alternative is to add something like `[Default, MinVersion=123] kUnknown` to each of these, which is doable, but requires updating `switch` statements and so on throughout the codebase. It's also unclear to me exactly how `Default` and `MinVersion` interact in terms of addressing the underlying problem.
Hidehiko AbeAck. According to https://chromium.googlesource.com/chromium/src/+/HEAD/mojo/public/tools/bindings/README.md#Versioned-Enums:
For versioned enum definitions, the use of a [MinVersion] attribute is strictly for documentation purposes. It has no impact on the generated code.
@hide...@chromium.org Do you have any thoughts on the addition of new enum values here, like `[Default] kUnkown` versus trying to reuse existing values as the default?
Yury KhmelI think adding clear Unknown sounds like more explicit and understandable.
Though, I think it's better to hear from ARC team explicitly. cc: khmel@.
I like the Hidehiko's idea with adding Unknown as a default. To me it safer way to do.
I'be added `kUnknown` to all of these, but it's not clear to me that it is safer. While the compiler helps catch `switch` statements that do not handle the new value, it doesn't help with things like `if (value == kFoo) { ... } else { ... }` doing the right thing with the new value. That requires auditing all uses with domain-specific expertise.
It's not obvious to me this should be the "default" state.
Acknowledged
Isn't this deprecated? Is that OK?
Acknowledged
[Default] kInactive,Andrew PaseltinerSimilarly here.
Acknowledged
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Andrew PaseltinerIf you can convince the media session/ARC (which I think uses this too?) folks that this is OK, meh. But as an IPC owner without domain-specific knowledge, it's hard for me to be sure that this is OK.
Andrew PaseltinerThe alternative is to add something like `[Default, MinVersion=123] kUnknown` to each of these, which is doable, but requires updating `switch` statements and so on throughout the codebase. It's also unclear to me exactly how `Default` and `MinVersion` interact in terms of addressing the underlying problem.
Hidehiko AbeAck. According to https://chromium.googlesource.com/chromium/src/+/HEAD/mojo/public/tools/bindings/README.md#Versioned-Enums:
For versioned enum definitions, the use of a [MinVersion] attribute is strictly for documentation purposes. It has no impact on the generated code.
@hide...@chromium.org Do you have any thoughts on the addition of new enum values here, like `[Default] kUnkown` versus trying to reuse existing values as the default?
Yury KhmelI think adding clear Unknown sounds like more explicit and understandable.
Though, I think it's better to hear from ARC team explicitly. cc: khmel@.
Andrew PaseltinerI like the Hidehiko's idea with adding Unknown as a default. To me it safer way to do.
I'be added `kUnknown` to all of these, but it's not clear to me that it is safer. While the compiler helps catch `switch` statements that do not handle the new value, it doesn't help with things like `if (value == kFoo) { ... } else { ... }` doing the right thing with the new value. That requires auditing all uses with domain-specific expertise.
I think any code using comparisons like that was probably wrong anyway?
I'm not sure we shoudl be using `NOTREACHED()` generically to handle the new values; by virtue of being an extensible interface, those notreached are, in fact, reachable.
NOTREACHED();This will crash, and we are not supposed to crash on bad inputs from IPC.