summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authorscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-04 04:16:39 +0000
committerscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-04 04:16:39 +0000
commiteb422129453c349708cf9086a96034f0cc024be7 (patch)
tree01398a86f0ec05b616e7f57dbee1d16a25f2e633 /ash
parentcdf1f28c8ebec974caec3858b46d9f806040c48b (diff)
downloadchromium_src-eb422129453c349708cf9086a96034f0cc024be7.zip
chromium_src-eb422129453c349708cf9086a96034f0cc024be7.tar.gz
chromium_src-eb422129453c349708cf9086a96034f0cc024be7.tar.bz2
Update Ash Display when resizing Metro window
On a window sizing event from the metro viewer, we were previously only updating the aura root window. We also need to update the ash DisplayManager data so that the wallpaper and docking behaviour work correctly when going e.g. from a portrait display to a landscape display. R=ananta@chromium.org, sky@chromium.org BUG=306629, 319051 Review URL: https://codereview.chromium.org/102783002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238560 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r--ash/test/test_metro_viewer_process_host.cc4
-rw-r--r--ash/test/test_metro_viewer_process_host.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/ash/test/test_metro_viewer_process_host.cc b/ash/test/test_metro_viewer_process_host.cc
index 3a58433..a5e3fbf 100644
--- a/ash/test/test_metro_viewer_process_host.cc
+++ b/ash/test/test_metro_viewer_process_host.cc
@@ -42,5 +42,9 @@ void TestMetroViewerProcessHost::OnHandleSearchRequest(
const string16& search_string) {
}
+void TestMetroViewerProcessHost::OnWindowSizeChanged(uint32 width,
+ uint32 height) {
+}
+
} // namespace test
} // namespace ash
diff --git a/ash/test/test_metro_viewer_process_host.h b/ash/test/test_metro_viewer_process_host.h
index e6d0a64..7c3770e 100644
--- a/ash/test/test_metro_viewer_process_host.h
+++ b/ash/test/test_metro_viewer_process_host.h
@@ -26,6 +26,7 @@ class TestMetroViewerProcessHost : public win8::MetroViewerProcessHost {
virtual void OnSetTargetSurface(gfx::NativeViewId target_surface) OVERRIDE;
virtual void OnOpenURL(const string16& url) OVERRIDE;
virtual void OnHandleSearchRequest(const string16& search_string) OVERRIDE;
+ virtual void OnWindowSizeChanged(uint32 width, uint32 height) OVERRIDE;
scoped_ptr<AcceleratedSurface> backing_surface_;