Reland "Swap touch HUD when switching primary display"
commitbff17558a018ea7515be7cf13728000d818637c5
authormohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 25 Apr 2013 04:44:55 +0000 (25 04:44 +0000)
committermohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 25 Apr 2013 04:44:55 +0000 (25 04:44 +0000)
tree6d5138b99a43f50ce3c04002cccb2a45c8f54623
parent20aac3239c16af487e57f442adbf92c03e5a340d
Reland "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.

Original Review URL: https://codereview.chromium.org/13460017/

BUG=172237
TBR=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196312 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]