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 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 bool MoveDesktopToLockedContainer(); | 90 bool MoveDesktopToLockedContainer(); |
91 | 91 |
92 // Move all desktop widgets to unlocked container. | 92 // Move all desktop widgets to unlocked container. |
93 // Returns true if the desktop moved. | 93 // Returns true if the desktop moved. |
94 bool MoveDesktopToUnlockedContainer(); | 94 bool MoveDesktopToUnlockedContainer(); |
95 | 95 |
96 // WindowTreeHostManager::Observer: | 96 // WindowTreeHostManager::Observer: |
97 void OnDisplayConfigurationChanged() override; | 97 void OnDisplayConfigurationChanged() override; |
98 | 98 |
99 // ShellObserver: | 99 // ShellObserver: |
100 void OnRootWindowAdded(aura::Window* root_window) override; | 100 void OnRootWindowAdded(WmWindow* root_window) override; |
101 | 101 |
102 // Returns the maximum size of all displays combined in native | 102 // Returns the maximum size of all displays combined in native |
103 // resolutions. Note that this isn't the bounds of the display who | 103 // resolutions. Note that this isn't the bounds of the display who |
104 // has maximum resolutions. Instead, this returns the size of the | 104 // has maximum resolutions. Instead, this returns the size of the |
105 // maximum width of all displays, and the maximum height of all displays. | 105 // maximum width of all displays, and the maximum height of all displays. |
106 static gfx::Size GetMaxDisplaySizeInNative(); | 106 static gfx::Size GetMaxDisplaySizeInNative(); |
107 | 107 |
108 // Returns true if the specified wallpaper is already stored | 108 // Returns true if the specified wallpaper is already stored |
109 // in |current_wallpaper_|. | 109 // in |current_wallpaper_|. |
110 // If |compare_layouts| is false, layout is ignored. | 110 // If |compare_layouts| is false, layout is ignored. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 int wallpaper_reload_delay_; | 166 int wallpaper_reload_delay_; |
167 | 167 |
168 base::SequencedWorkerPool* blocking_pool_; | 168 base::SequencedWorkerPool* blocking_pool_; |
169 | 169 |
170 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); | 170 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
171 }; | 171 }; |
172 | 172 |
173 } // namespace ash | 173 } // namespace ash |
174 | 174 |
175 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ | 175 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
OLD | NEW |