| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/wm/property_util.h" | 5 #include "ash/wm/property_util.h" |
| 6 | 6 |
| 7 #include "ash/ash_export.h" | 7 #include "ash/ash_export.h" |
| 8 #include "ash/root_window_property.h" |
| 8 #include "ash/screen_ash.h" | 9 #include "ash/screen_ash.h" |
| 9 #include "ash/wm/window_properties.h" | 10 #include "ash/wm/window_properties.h" |
| 10 #include "ash/wm/window_util.h" | 11 #include "ash/wm/window_util.h" |
| 11 #include "ui/aura/client/aura_constants.h" | 12 #include "ui/aura/client/aura_constants.h" |
| 12 #include "ui/aura/root_window.h" | 13 #include "ui/aura/root_window.h" |
| 13 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
| 14 #include "ui/base/ui_base_types.h" | 15 #include "ui/base/ui_base_types.h" |
| 15 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
| 16 | 17 |
| 17 namespace ash { | 18 namespace ash { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 window->SetProperty(internal::kWindowRestoresToRestoreBounds, value); | 61 window->SetProperty(internal::kWindowRestoresToRestoreBounds, value); |
| 61 } | 62 } |
| 62 | 63 |
| 63 bool GetWindowAlwaysRestoresToRestoreBounds(const aura::Window* window) { | 64 bool GetWindowAlwaysRestoresToRestoreBounds(const aura::Window* window) { |
| 64 return window->GetProperty(internal::kWindowRestoresToRestoreBounds); | 65 return window->GetProperty(internal::kWindowRestoresToRestoreBounds); |
| 65 } | 66 } |
| 66 | 67 |
| 67 internal::RootWindowController* GetRootWindowController( | 68 internal::RootWindowController* GetRootWindowController( |
| 68 const aura::RootWindow* root_window) { | 69 const aura::RootWindow* root_window) { |
| 69 return root_window ? | 70 return root_window ? |
| 70 root_window->GetProperty(internal::kRootWindowControllerKey) : NULL; | 71 internal::GetRootWindowProperty(root_window)->controller : NULL; |
| 71 } | 72 } |
| 72 | 73 |
| 73 void SetRootWindowController(aura::RootWindow* root_window, | 74 void SetRootWindowController(aura::RootWindow* root_window, |
| 74 internal::RootWindowController* controller) { | 75 internal::RootWindowController* controller) { |
| 75 root_window->SetProperty(internal::kRootWindowControllerKey, controller); | 76 internal::GetRootWindowProperty(root_window)->controller = controller; |
| 76 } | 77 } |
| 77 | 78 |
| 78 } // namespace ash | 79 } // namespace ash |
| OLD | NEW |