Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2833)

Unified Diff: ash/common/scoped_root_window_for_new_windows.h

Issue 2194353002: mash: Migrate ScopedTargetRootWindow to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: similarity 40 Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/common/scoped_root_window_for_new_windows.h
diff --git a/ash/common/scoped_root_window_for_new_windows.h b/ash/common/scoped_root_window_for_new_windows.h
new file mode 100644
index 0000000000000000000000000000000000000000..55dc2705837c6e307ff9532ccf9a3051f378fa61
--- /dev/null
+++ b/ash/common/scoped_root_window_for_new_windows.h
@@ -0,0 +1,22 @@
+// Copyright 2016 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.
+
+#ifndef ASH_COMMON_SCOPED_ROOT_WINDOW_FOR_NEW_WINDOWS_H_
+#define ASH_COMMON_SCOPED_ROOT_WINDOW_FOR_NEW_WINDOWS_H_
+
+#include "ash/ash_export.h"
+
+namespace ash {
+
+// Allows a temporary override of the root window where new windows get created.
+// An example usage is to specify the target root window when creating a new
+// window by clicking on a shelf icon.
+class ASH_EXPORT ScopedRootWindowForNewWindows {
msw 2016/08/01 21:36:15 q: Could this just be a typedef for base::AutoRese
+ public:
+ virtual ~ScopedRootWindowForNewWindows() {}
+};
+
+} // namespace ash
+
+#endif // ASH_COMMON_SCOPED_ROOT_WINDOW_FOR_NEW_WINDOWS_H_

Powered by Google App Engine
This is Rietveld 408576698