summaryrefslogtreecommitdiffstats
path: root/ash/scoped_target_root_window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/scoped_target_root_window.cc')
-rw-r--r--ash/scoped_target_root_window.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/ash/scoped_target_root_window.cc b/ash/scoped_target_root_window.cc
new file mode 100644
index 0000000..b488a6f
--- /dev/null
+++ b/ash/scoped_target_root_window.cc
@@ -0,0 +1,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::RootWindow* root_window) {
+ Shell::GetInstance()->scoped_target_root_window_ = root_window;
+}
+
+ScopedTargetRootWindow::~ScopedTargetRootWindow() {
+ Shell::GetInstance()->scoped_target_root_window_ = NULL;
+}
+
+} // namespace internal
+} // namespace ash