| 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/wm/window_properties.h" | 8 #include "ash/wm/window_properties.h" |
| 9 #include "ash/wm/window_util.h" | 9 #include "ash/wm/window_util.h" |
| 10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
| 11 #include "ui/aura/root_window.h" |
| 11 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
| 12 #include "ui/base/ui_base_types.h" | 13 #include "ui/base/ui_base_types.h" |
| 13 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
| 14 | 15 |
| 15 namespace ash { | 16 namespace ash { |
| 16 namespace { | 17 namespace { |
| 17 bool g_default_windows_persist_across_all_workspaces = false; | 18 bool g_default_windows_persist_across_all_workspaces = false; |
| 18 } // namespace | 19 } // namespace |
| 19 | 20 |
| 20 void SetRestoreBounds(aura::Window* window, const gfx::Rect& bounds) { | 21 void SetRestoreBounds(aura::Window* window, const gfx::Rect& bounds) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 case WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_DEFAULT: | 66 case WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_DEFAULT: |
| 66 return g_default_windows_persist_across_all_workspaces; | 67 return g_default_windows_persist_across_all_workspaces; |
| 67 } | 68 } |
| 68 return false; | 69 return false; |
| 69 } | 70 } |
| 70 | 71 |
| 71 void SetDefaultPersistsAcrossAllWorkspaces(bool value) { | 72 void SetDefaultPersistsAcrossAllWorkspaces(bool value) { |
| 72 g_default_windows_persist_across_all_workspaces = value; | 73 g_default_windows_persist_across_all_workspaces = value; |
| 73 } | 74 } |
| 74 | 75 |
| 76 internal::RootWindowController* GetRootWindowController( |
| 77 aura::RootWindow* root_window) { |
| 78 return root_window->GetProperty(internal::kRootWindowControllerKey); |
| 75 } | 79 } |
| 80 |
| 81 void SetRootWindowController(aura::RootWindow* root_window, |
| 82 internal::RootWindowController* controller) { |
| 83 root_window->SetProperty(internal::kRootWindowControllerKey, controller); |
| 84 } |
| 85 |
| 86 } // namespace ash |
| OLD | NEW |