| 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_WM_SHELF_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_SHELF_LAYOUT_MANAGER_H_ |
| 6 #define ASH_WM_SHELF_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_SHELF_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/launcher/launcher.h" | 9 #include "ash/launcher/launcher.h" |
| 10 #include "ash/shell_observer.h" | 10 #include "ash/shell_observer.h" |
| 11 #include "ash/wm/shelf_types.h" | 11 #include "ash/wm/shelf_types.h" |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/gtest_prod_util.h" | |
| 15 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 16 #include "base/timer.h" | 15 #include "base/timer.h" |
| 17 #include "ui/aura/client/activation_change_observer.h" | 16 #include "ui/aura/client/activation_change_observer.h" |
| 18 #include "ui/aura/layout_manager.h" | 17 #include "ui/aura/layout_manager.h" |
| 19 #include "ui/gfx/insets.h" | 18 #include "ui/gfx/insets.h" |
| 20 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
| 21 | 20 |
| 22 namespace aura { | 21 namespace aura { |
| 23 class RootWindow; | 22 class RootWindow; |
| 24 } | 23 } |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 168 |
| 170 // Overriden from aura::client::ActivationChangeObserver: | 169 // Overriden from aura::client::ActivationChangeObserver: |
| 171 virtual void OnWindowActivated(aura::Window* active, | 170 virtual void OnWindowActivated(aura::Window* active, |
| 172 aura::Window* old_active) OVERRIDE; | 171 aura::Window* old_active) OVERRIDE; |
| 173 | 172 |
| 174 private: | 173 private: |
| 175 class AutoHideEventFilter; | 174 class AutoHideEventFilter; |
| 176 class UpdateShelfObserver; | 175 class UpdateShelfObserver; |
| 177 friend class ash::ScreenAsh; | 176 friend class ash::ScreenAsh; |
| 178 friend class ShelfLayoutManagerTest; | 177 friend class ShelfLayoutManagerTest; |
| 179 FRIEND_TEST_ALL_PREFIXES(ShelfLayoutManagerTest, SetAutoHideBehavior); | |
| 180 | 178 |
| 181 struct TargetBounds { | 179 struct TargetBounds { |
| 182 TargetBounds(); | 180 TargetBounds(); |
| 183 | 181 |
| 184 float opacity; | 182 float opacity; |
| 185 gfx::Rect launcher_bounds_in_root; | 183 gfx::Rect launcher_bounds_in_root; |
| 186 gfx::Rect status_bounds_in_root; | 184 gfx::Rect status_bounds_in_root; |
| 187 gfx::Insets work_area_insets; | 185 gfx::Insets work_area_insets; |
| 188 }; | 186 }; |
| 189 | 187 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 // Used to delay updating shelf background. | 304 // Used to delay updating shelf background. |
| 307 UpdateShelfObserver* update_shelf_observer_; | 305 UpdateShelfObserver* update_shelf_observer_; |
| 308 | 306 |
| 309 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 307 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 310 }; | 308 }; |
| 311 | 309 |
| 312 } // namespace internal | 310 } // namespace internal |
| 313 } // namespace ash | 311 } // namespace ash |
| 314 | 312 |
| 315 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ | 313 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |