From cbafd1cf102678418fbe04bf170d3e05ffc92af0 Mon Sep 17 00:00:00 2001 From: "grt@chromium.org" Date: Thu, 15 Nov 2012 23:33:44 +0000 Subject: Track the last active RootWindowHost to determine the most-recently active host desktop type. This is for use in those places where there's no context from which to figure out if something should be popped on the native or ash desktop. Original approach reviewed here: https://chromiumcodereview.appspot.com/11188064/ BUG=129187 TEST=none Review URL: https://chromiumcodereview.appspot.com/11358090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168074 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/aura/root_window.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/aura/root_window.cc') diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc index c398125..d734807 100644 --- a/ui/aura/root_window.cc +++ b/ui/aura/root_window.cc @@ -903,6 +903,10 @@ bool RootWindow::OnHostTouchEvent(ui::TouchEvent* event) { return ProcessGestures(gestures.get()) ? true : handled; } +void RootWindow::OnHostActivated() { + Env::GetInstance()->RootWindowActivated(this); +} + void RootWindow::OnHostLostWindowCapture() { Window* capture_window = client::GetCaptureWindow(this); if (capture_window && capture_window->GetRootWindow() == this) -- cgit v1.1