| 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_SHELF_SHELF_WIDGET_H_ | 5 #ifndef ASH_SHELF_SHELF_WIDGET_H_ |
| 6 #define ASH_SHELF_SHELF_WIDGET_H_ | 6 #define ASH_SHELF_SHELF_WIDGET_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/shelf/background_animator.h" | 9 #include "ash/shelf/background_animator.h" |
| 10 #include "ash/shelf/shelf_types.h" | 10 #include "ash/shelf/shelf_types.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // Called by the activation delegate, before the launcher is activated | 73 // Called by the activation delegate, before the launcher is activated |
| 74 // when no other windows are visible. | 74 // when no other windows are visible. |
| 75 void WillActivateAsFallback() { activating_as_fallback_ = true; } | 75 void WillActivateAsFallback() { activating_as_fallback_ = true; } |
| 76 | 76 |
| 77 aura::Window* window_container() { return window_container_; } | 77 aura::Window* window_container() { return window_container_; } |
| 78 | 78 |
| 79 // TODO(harrym): Remove when Status Area Widget is a child view. | 79 // TODO(harrym): Remove when Status Area Widget is a child view. |
| 80 void ShutdownStatusAreaWidget(); | 80 void ShutdownStatusAreaWidget(); |
| 81 | 81 |
| 82 // Set the bounds of the widget and the dim shelf overlay. | |
| 83 void SetWidgetBounds(const gfx::Rect& rect); | |
| 84 | |
| 85 // Force the shelf to be presented in an undimmed state. | 82 // Force the shelf to be presented in an undimmed state. |
| 86 void ForceUndimming(bool force); | 83 void ForceUndimming(bool force); |
| 87 | 84 |
| 88 // Overridden from views::WidgetObserver: | 85 // Overridden from views::WidgetObserver: |
| 89 virtual void OnWidgetActivationChanged( | 86 virtual void OnWidgetActivationChanged( |
| 90 views::Widget* widget, bool active) OVERRIDE; | 87 views::Widget* widget, bool active) OVERRIDE; |
| 91 | 88 |
| 92 // A function to test the current alpha used by the dimming bar. If there is | 89 // A function to test the current alpha used by the dimming bar. If there is |
| 93 // no dimmer active, the function will return -1. | 90 // no dimmer active, the function will return -1. |
| 94 int GetDimmingAlphaForTest(); | 91 int GetDimmingAlphaForTest(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 111 // during CloseChildWindows of the associated RootWindowController. | 108 // during CloseChildWindows of the associated RootWindowController. |
| 112 DelegateView* delegate_view_; | 109 DelegateView* delegate_view_; |
| 113 internal::BackgroundAnimator background_animator_; | 110 internal::BackgroundAnimator background_animator_; |
| 114 bool activating_as_fallback_; | 111 bool activating_as_fallback_; |
| 115 aura::Window* window_container_; | 112 aura::Window* window_container_; |
| 116 }; | 113 }; |
| 117 | 114 |
| 118 } // namespace ash | 115 } // namespace ash |
| 119 | 116 |
| 120 #endif // ASH_SHELF_SHELF_WIDGET_H_ | 117 #endif // ASH_SHELF_SHELF_WIDGET_H_ |
| OLD | NEW |