Well, anything that isn't a text/content editor (or a file system manager, which I had forgotten to mention), so basically the vast majority of computer usage. Settings in applications, navigation state of applications, state of the OS/window manager itself (I'm not aware of a desktop environment where moving or closing a window or application supports an undo feature), etc. Web browsers and most file managers do support back and forward navigation, if you want to count that as "undo."
The comment I was initially replying to talked about being afraid to press buttons in modern UIs because of the lack of undo. My claim is that, except for buttons that change formatting in text/content editors or buttons that make changes in some file system managers, undo functionality has really never existed to my knowledge.
Not in practice, as this feature is universally broken by modern web developers, making it totally unreliable.
You have a good point about undo - it was universally a feature for reverting operations on edited data, not on application state itself. But then again, it was compensated by buttons having reliable tooltips, and most options available in textual menus.
Firefox's tab history seems quite deep, I can CTRL-SHIFT-T many times.
iPhone implemented shake to undo back with iPhone 3.0
https://en.wikipedia.org/wiki/Undo
http://osxdaily.com/2009/08/21/undo-button-iphone-shaking-mo...
Of course you can Undo something like Archiving a message. That's the Mac way, since 1984.
But after a decade of using gmail, it's not even something I would think to do.
What I am less confident of is what happens when that notification goes away.