summaryrefslogtreecommitdiff
path: root/chromium/ash/scoped_target_root_window.cc
blob: c34f4c321352555639a06643f757671b7a6f5186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/scoped_target_root_window.h"

#include "ash/shell.h"

namespace ash {
namespace internal {

ScopedTargetRootWindow::ScopedTargetRootWindow(
    aura::Window* root_window) {
  Shell::GetInstance()->scoped_target_root_window_ = root_window;
}

ScopedTargetRootWindow::~ScopedTargetRootWindow() {
  Shell::GetInstance()->scoped_target_root_window_ = NULL;
}

}  // namespace internal
}  // namespace ash