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

Unified Diff: ash/wm/property_util.cc

Issue 23496024: Introduce RootWindowProperty for RootWindow's properties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename 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
« no previous file with comments | « ash/wm/frame_painter_unittest.cc ('k') | ash/wm/window_properties.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/property_util.cc
diff --git a/ash/wm/property_util.cc b/ash/wm/property_util.cc
index 413eeb97a436ce248e9684066114dac8c96fe243..4c0470a8d28998fdeb505e96f9a4487734acd6fb 100644
--- a/ash/wm/property_util.cc
+++ b/ash/wm/property_util.cc
@@ -5,6 +5,7 @@
#include "ash/wm/property_util.h"
#include "ash/ash_export.h"
+#include "ash/root_window_settings.h"
#include "ash/screen_ash.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"
@@ -67,12 +68,12 @@ bool GetWindowAlwaysRestoresToRestoreBounds(const aura::Window* window) {
internal::RootWindowController* GetRootWindowController(
const aura::RootWindow* root_window) {
return root_window ?
- root_window->GetProperty(internal::kRootWindowControllerKey) : NULL;
+ internal::GetRootWindowSettings(root_window)->controller : NULL;
}
void SetRootWindowController(aura::RootWindow* root_window,
internal::RootWindowController* controller) {
- root_window->SetProperty(internal::kRootWindowControllerKey, controller);
+ internal::GetRootWindowSettings(root_window)->controller = controller;
}
} // namespace ash
« no previous file with comments | « ash/wm/frame_painter_unittest.cc ('k') | ash/wm/window_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698