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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(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) { |
| 56 window->SetProperty(internal::kIgnoredByShelfKey, value); |
| 57 } |
| 58 |
| 59 bool GetIgnoredByShelf(aura::Window* window) { |
| 60 return window->GetProperty(internal::kIgnoredByShelfKey); |
| 61 } |
| 62 |
55 void SetPersistsAcrossAllWorkspaces( | 63 void SetPersistsAcrossAllWorkspaces( |
56 aura::Window* window, | 64 aura::Window* window, |
57 WindowPersistsAcrossAllWorkspacesType type) { | 65 WindowPersistsAcrossAllWorkspacesType type) { |
58 window->SetProperty( | 66 window->SetProperty( |
59 internal::kWindowPersistsAcrossAllWorkspacesKey, type); | 67 internal::kWindowPersistsAcrossAllWorkspacesKey, type); |
60 } | 68 } |
61 | 69 |
62 bool GetPersistsAcrossAllWorkspaces(aura::Window* window) { | 70 bool GetPersistsAcrossAllWorkspaces(aura::Window* window) { |
63 switch (window->GetProperty( | 71 switch (window->GetProperty( |
64 internal::kWindowPersistsAcrossAllWorkspacesKey)) { | 72 internal::kWindowPersistsAcrossAllWorkspacesKey)) { |
(...skipping 16 matching lines...) Expand all Loading... |
81 return root_window ? | 89 return root_window ? |
82 root_window->GetProperty(internal::kRootWindowControllerKey) : NULL; | 90 root_window->GetProperty(internal::kRootWindowControllerKey) : NULL; |
83 } | 91 } |
84 | 92 |
85 void SetRootWindowController(aura::RootWindow* root_window, | 93 void SetRootWindowController(aura::RootWindow* root_window, |
86 internal::RootWindowController* controller) { | 94 internal::RootWindowController* controller) { |
87 root_window->SetProperty(internal::kRootWindowControllerKey, controller); | 95 root_window->SetProperty(internal::kRootWindowControllerKey, controller); |
88 } | 96 } |
89 | 97 |
90 } // namespace ash | 98 } // namespace ash |
OLD | NEW |