| 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_APP_LIST_APP_LIST_H_ | 5 #ifndef ASH_APP_LIST_APP_LIST_H_ |
| 6 #define ASH_APP_LIST_APP_LIST_H_ | 6 #define ASH_APP_LIST_APP_LIST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // While the UI is visible, it monitors things such as app list widget's | 25 // While the UI is visible, it monitors things such as app list widget's |
| 26 // activation state and desktop mouse click to auto dismiss the UI. | 26 // activation state and desktop mouse click to auto dismiss the UI. |
| 27 class AppList : public aura::EventFilter, | 27 class AppList : public aura::EventFilter, |
| 28 public aura::RootWindowObserver, | 28 public aura::RootWindowObserver, |
| 29 public ui::ImplicitAnimationObserver, | 29 public ui::ImplicitAnimationObserver, |
| 30 public views::Widget::Observer { | 30 public views::Widget::Observer { |
| 31 public: | 31 public: |
| 32 AppList(); | 32 AppList(); |
| 33 virtual ~AppList(); | 33 virtual ~AppList(); |
| 34 | 34 |
| 35 // Returns true if AppListV2 is enabled. |
| 36 static bool UseAppListV2(); |
| 37 |
| 35 // Show/hide app list window. | 38 // Show/hide app list window. |
| 36 void SetVisible(bool visible); | 39 void SetVisible(bool visible); |
| 37 | 40 |
| 38 // Whether app list window is visible (shown or being shown). | 41 // Whether app list window is visible (shown or being shown). |
| 39 bool IsVisible(); | 42 bool IsVisible(); |
| 40 | 43 |
| 41 // Returns target visibility. This differs from IsVisible() if an animation | 44 // Returns target visibility. This differs from IsVisible() if an animation |
| 42 // is ongoing. | 45 // is ongoing. |
| 43 bool GetTargetVisibility() const { return is_visible_; } | 46 bool GetTargetVisibility() const { return is_visible_; } |
| 44 | 47 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // animation is scheduled in ScheduleAnimation. | 104 // animation is scheduled in ScheduleAnimation. |
| 102 base::OneShotTimer<AppList> second_animation_timer_; | 105 base::OneShotTimer<AppList> second_animation_timer_; |
| 103 | 106 |
| 104 DISALLOW_COPY_AND_ASSIGN(AppList); | 107 DISALLOW_COPY_AND_ASSIGN(AppList); |
| 105 }; | 108 }; |
| 106 | 109 |
| 107 } // namespace internal | 110 } // namespace internal |
| 108 } // namespace ash | 111 } // namespace ash |
| 109 | 112 |
| 110 #endif // ASH_APP_LIST_APP_LIST_H_ | 113 #endif // ASH_APP_LIST_APP_LIST_H_ |
| OLD | NEW |