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

Unified Diff: ash/root_window_property.h

Issue 23496024: Introduce RootWindowProperty for RootWindow's properties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/root_window_property.h
diff --git a/ash/root_window_property.h b/ash/root_window_property.h
new file mode 100644
index 0000000000000000000000000000000000000000..0629a423cfc5aaeeb043b97282f456cf51b3895d
--- /dev/null
+++ b/ash/root_window_property.h
@@ -0,0 +1,46 @@
+// 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.
+
+#ifndef ASH_WM_ROOT_WINDOW_PROPERTY_H_
+#define ASH_WM_ROOT_WINDOW_PROPERTY_H_
+
+#include "ash/ash_export.h"
+#include "base/basictypes.h"
+
+namespace aura {
+class RootWindow;
+}
+
+namespace ash {
+namespace internal {
+
+class RootWindowController;
+
+struct RootWindowProperty {
James Cook 2013/08/30 00:06:36 Should this be RootWindowProperties because it con
oshima 2013/08/30 05:38:33 I thought about RootWindowProperties, but I picked
James Cook 2013/08/30 16:26:25 I like RootWindowSettings the best. (Yeah, it's a
+ RootWindowProperty();
+
+ // Indicate if the window in the active workspace should
+ // use the transparent "solo-window" header style.
+ bool solo_window_header;
+
+ // ID of the display associated with the root window.
+ int64 display_id;
+
+ // RootWindowController for the root window. This may be NULL
+ // for the root window used for mirroring.
+ RootWindowController* controller;
+};
+
+// Returns the RootWindowProperty for |root|. It automatically creates
+// new instance of the |root| does not exist and never returns NULL.
James Cook 2013/08/30 00:06:36 of -> if
oshima 2013/08/30 05:38:33 Done.
+ASH_EXPORT RootWindowProperty* GetRootWindowProperty(aura::RootWindow* root);
+
+// Returns the RootWindowProperty for const |root|. This may return NULL.
James Cook 2013/08/30 00:06:36 Should this version just cast away the const and n
oshima 2013/08/30 05:38:33 I added InitRootWindowProperty instead to explicit
+ASH_EXPORT const RootWindowProperty*
+GetRootWindowProperty(const aura::RootWindow* root);
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_WM_ROOT_WINDOW_PROPERTY_H_

Powered by Google App Engine
This is Rietveld 408576698