| 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/screen_ash.h" | 8 #include "ash/screen_ash.h" |
| 9 #include "ash/wm/window_properties.h" | 9 #include "ash/wm/window_properties.h" |
| 10 #include "ash/wm/window_util.h" | 10 #include "ash/wm/window_util.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 void ClearRestoreBounds(aura::Window* window) { | 43 void ClearRestoreBounds(aura::Window* window) { |
| 44 window->ClearProperty(aura::client::kRestoreBoundsKey); | 44 window->ClearProperty(aura::client::kRestoreBoundsKey); |
| 45 } | 45 } |
| 46 | 46 |
| 47 void SetTrackedByWorkspace(aura::Window* window, bool value) { | 47 void SetTrackedByWorkspace(aura::Window* window, bool value) { |
| 48 window->SetProperty(internal::kWindowTrackedByWorkspaceKey, value); | 48 window->SetProperty(internal::kWindowTrackedByWorkspaceKey, value); |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool GetTrackedByWorkspace(const aura::Window* window) { | 51 bool GetTrackedByWorkspace(aura::Window* window) { |
| 52 return window->GetProperty(internal::kWindowTrackedByWorkspaceKey); | 52 return window->GetProperty(internal::kWindowTrackedByWorkspaceKey); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void SetIgnoredByShelf(aura::Window* window, bool value) { | 55 void SetIgnoredByShelf(aura::Window* window, bool value) { |
| 56 window->SetProperty(internal::kIgnoredByShelfKey, value); | 56 window->SetProperty(internal::kIgnoredByShelfKey, value); |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool GetIgnoredByShelf(const aura::Window* window) { | 59 bool GetIgnoredByShelf(aura::Window* window) { |
| 60 return window->GetProperty(internal::kIgnoredByShelfKey); | 60 return window->GetProperty(internal::kIgnoredByShelfKey); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void SetPersistsAcrossAllWorkspaces( | 63 void SetPersistsAcrossAllWorkspaces( |
| 64 aura::Window* window, | 64 aura::Window* window, |
| 65 WindowPersistsAcrossAllWorkspacesType type) { | 65 WindowPersistsAcrossAllWorkspacesType type) { |
| 66 window->SetProperty( | 66 window->SetProperty( |
| 67 internal::kWindowPersistsAcrossAllWorkspacesKey, type); | 67 internal::kWindowPersistsAcrossAllWorkspacesKey, type); |
| 68 } | 68 } |
| 69 | 69 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 89 return root_window ? | 89 return root_window ? |
| 90 root_window->GetProperty(internal::kRootWindowControllerKey) : NULL; | 90 root_window->GetProperty(internal::kRootWindowControllerKey) : NULL; |
| 91 } | 91 } |
| 92 | 92 |
| 93 void SetRootWindowController(aura::RootWindow* root_window, | 93 void SetRootWindowController(aura::RootWindow* root_window, |
| 94 internal::RootWindowController* controller) { | 94 internal::RootWindowController* controller) { |
| 95 root_window->SetProperty(internal::kRootWindowControllerKey, controller); | 95 root_window->SetProperty(internal::kRootWindowControllerKey, controller); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace ash | 98 } // namespace ash |
| OLD | NEW |