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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 void SetTrackedByWorkspace(aura::Window* window, bool value) { | 46 void SetTrackedByWorkspace(aura::Window* window, bool value) { |
47 window->SetProperty(internal::kWindowTrackedByWorkspaceKey, value); | 47 window->SetProperty(internal::kWindowTrackedByWorkspaceKey, value); |
48 } | 48 } |
49 | 49 |
50 bool GetTrackedByWorkspace(const aura::Window* window) { | 50 bool GetTrackedByWorkspace(const aura::Window* window) { |
51 return window->GetProperty(internal::kWindowTrackedByWorkspaceKey); | 51 return window->GetProperty(internal::kWindowTrackedByWorkspaceKey); |
52 } | 52 } |
53 | 53 |
| 54 void SetCanBeMaximizedByWorkspace(aura::Window* window, bool value) { |
| 55 window->SetProperty(internal::kWindowCanBeMaximizedByWorkspaceKey, value); |
| 56 } |
| 57 |
| 58 bool GetCanBeMaximizedByWorkspace(const aura::Window* window) { |
| 59 return window->GetProperty(internal::kWindowCanBeMaximizedByWorkspaceKey); |
| 60 } |
| 61 |
54 void SetIgnoredByShelf(aura::Window* window, bool value) { | 62 void SetIgnoredByShelf(aura::Window* window, bool value) { |
55 window->SetProperty(internal::kIgnoredByShelfKey, value); | 63 window->SetProperty(internal::kIgnoredByShelfKey, value); |
56 } | 64 } |
57 | 65 |
58 bool GetIgnoredByShelf(const aura::Window* window) { | 66 bool GetIgnoredByShelf(const aura::Window* window) { |
59 return window->GetProperty(internal::kIgnoredByShelfKey); | 67 return window->GetProperty(internal::kIgnoredByShelfKey); |
60 } | 68 } |
61 | 69 |
62 void SetWindowAlwaysRestoresToRestoreBounds(aura::Window* window, bool value) { | 70 void SetWindowAlwaysRestoresToRestoreBounds(aura::Window* window, bool value) { |
63 window->SetProperty(internal::kWindowRestoresToRestoreBounds, value); | 71 window->SetProperty(internal::kWindowRestoresToRestoreBounds, value); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 return root_window ? | 104 return root_window ? |
97 root_window->GetProperty(internal::kRootWindowControllerKey) : NULL; | 105 root_window->GetProperty(internal::kRootWindowControllerKey) : NULL; |
98 } | 106 } |
99 | 107 |
100 void SetRootWindowController(aura::RootWindow* root_window, | 108 void SetRootWindowController(aura::RootWindow* root_window, |
101 internal::RootWindowController* controller) { | 109 internal::RootWindowController* controller) { |
102 root_window->SetProperty(internal::kRootWindowControllerKey, controller); | 110 root_window->SetProperty(internal::kRootWindowControllerKey, controller); |
103 } | 111 } |
104 | 112 |
105 } // namespace ash | 113 } // namespace ash |
OLD | NEW |