Implementation of WindowIn and WindowOut events

Change-Id: I2c6e62f6f97ceee9d091f54d45c11f73f99124bd