Swap touch HUD when switching primary display
commit4aa0d84f4864b284ab93b2c5af9d9d96e5d3a4ac
authormohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 24 Apr 2013 21:08:27 +0000 (24 21:08 +0000)
committermohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 24 Apr 2013 21:08:27 +0000 (24 21:08 +0000)
treeb374508e859ee348527ac75b111d161a96a5af4e
parentcc384b25fb73e9e3b5c44b9e9051c90229697ca5
Swap touch HUD when switching primary display

When a display is set as the primary display, its root window (and all
its children, including the widget showing the touch HUD) is replaced
with the old one's. But, the touch HUD widget is bound to display and
should not be swapped between the two displays. So, after swapping the
root windows, touch HUDs are swapped back to their own display.

BUG=172237

Review URL: https://chromiumcodereview.appspot.com/13460017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196235 0039d316-1c4b-4281-b951-d872f2087c98
ash/ash.gyp
ash/root_window_controller.cc
ash/root_window_controller.h
ash/touch/touch_observer_hud.cc
ash/touch/touch_observer_hud.h
ash/touch/touch_observer_hud_unittest.cc [new file with mode: 0644]