| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_AURA_SHELL_TOPLEVEL_LAYOUT_MANAGER_H_ | 5 #ifndef UI_AURA_SHELL_TOPLEVEL_LAYOUT_MANAGER_H_ |
| 6 #define UI_AURA_SHELL_TOPLEVEL_LAYOUT_MANAGER_H_ | 6 #define UI_AURA_SHELL_TOPLEVEL_LAYOUT_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 const gfx::Rect& requested_bounds) OVERRIDE; | 41 const gfx::Rect& requested_bounds) OVERRIDE; |
| 42 | 42 |
| 43 // WindowObserver overrides: | 43 // WindowObserver overrides: |
| 44 virtual void OnWindowPropertyChanged(aura::Window* window, | 44 virtual void OnWindowPropertyChanged(aura::Window* window, |
| 45 const char* name, | 45 const char* name, |
| 46 void* old) OVERRIDE; | 46 void* old) OVERRIDE; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 typedef std::set<aura::Window*> Windows; | 49 typedef std::set<aura::Window*> Windows; |
| 50 | 50 |
| 51 // If necessary adjusts the bounds of window based on it's show state. | 51 // Updates the visibility of the shelf based on if there are any full screen |
| 52 void WindowStateChanged(aura::Window* window); | |
| 53 | |
| 54 // Updates the visbility of the shelf based on if there are any full screen | |
| 55 // windows. | 52 // windows. |
| 56 void UpdateShelfVisibility(); | 53 void UpdateShelfVisibility(); |
| 57 | 54 |
| 58 // Set of windows we're listening to. | 55 // Set of windows we're listening to. |
| 59 Windows windows_; | 56 Windows windows_; |
| 60 | 57 |
| 58 // May be NULL if we're not using a shelf. |
| 61 ShelfLayoutManager* shelf_; | 59 ShelfLayoutManager* shelf_; |
| 62 | 60 |
| 63 DISALLOW_COPY_AND_ASSIGN(ToplevelLayoutManager); | 61 DISALLOW_COPY_AND_ASSIGN(ToplevelLayoutManager); |
| 64 }; | 62 }; |
| 65 | 63 |
| 66 } // namepsace aura_shell | 64 } // namespace aura_shell |
| 67 } // namepsace internal | 65 } // namespace internal |
| 68 | 66 |
| 69 #endif // UI_AURA_SHELL_TOPLEVEL_LAYOUT_MANAGER_H_ | 67 #endif // UI_AURA_SHELL_TOPLEVEL_LAYOUT_MANAGER_H_ |
| OLD | NEW |