Bug 927862 - Implement AttentionWindow

Also add a test.