| 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_LAUNCHER_LAUNCHER_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_H_ |
| 6 #define ASH_LAUNCHER_LAUNCHER_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/launcher/background_animator.h" | 9 #include "ash/launcher/background_animator.h" |
| 10 #include "ash/launcher/launcher_types.h" | 10 #include "ash/launcher/launcher_types.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // Called by the activation delegate, before the launcher is activated | 128 // Called by the activation delegate, before the launcher is activated |
| 129 // when no other windows are visible. | 129 // when no other windows are visible. |
| 130 void WillActivateAsFallback() { activating_as_fallback_ = true; } | 130 void WillActivateAsFallback() { activating_as_fallback_ = true; } |
| 131 | 131 |
| 132 // Overridden from views::WidgetObserver: | 132 // Overridden from views::WidgetObserver: |
| 133 virtual void OnWidgetActivationChanged( | 133 virtual void OnWidgetActivationChanged( |
| 134 views::Widget* widget, bool active) OVERRIDE; | 134 views::Widget* widget, bool active) OVERRIDE; |
| 135 | 135 |
| 136 private: | 136 private: |
| 137 class DelegateView; | 137 class DelegateView; |
| 138 class DimmerView; |
| 138 | 139 |
| 139 // Widget hosting the view. | 140 // Widget hosting the view. |
| 140 scoped_ptr<views::Widget> widget_; | 141 scoped_ptr<views::Widget> widget_; |
| 141 scoped_ptr<views::Widget> dimmer_; | 142 scoped_ptr<views::Widget> dimmer_; |
| 142 | 143 |
| 143 aura::Window* window_container_; | 144 aura::Window* window_container_; |
| 144 | 145 |
| 145 // Contents view of the widget. Houses the LauncherView. | 146 // Contents view of the widget. Houses the LauncherView. |
| 146 DelegateView* delegate_view_; | 147 DelegateView* delegate_view_; |
| 147 | 148 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 160 | 161 |
| 161 // Used then activation is forced from the activation delegate. | 162 // Used then activation is forced from the activation delegate. |
| 162 bool activating_as_fallback_; | 163 bool activating_as_fallback_; |
| 163 | 164 |
| 164 DISALLOW_COPY_AND_ASSIGN(Launcher); | 165 DISALLOW_COPY_AND_ASSIGN(Launcher); |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // namespace ash | 168 } // namespace ash |
| 168 | 169 |
| 169 #endif // ASH_LAUNCHER_LAUNCHER_H_ | 170 #endif // ASH_LAUNCHER_LAUNCHER_H_ |
| OLD | NEW |