| 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 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" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "ui/aura/event_filter.h" | 12 #include "ui/aura/event_filter.h" |
| 13 #include "ui/gfx/compositor/layer_animation_observer.h" | 13 #include "ui/gfx/compositor/layer_animation_observer.h" |
| 14 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
| 15 | 15 |
| 16 namespace aura_shell { | 16 namespace ash { |
| 17 namespace internal { | 17 namespace internal { |
| 18 | 18 |
| 19 // AppList is a controller that manages app list UI for shell. To show the UI, | 19 // AppList is a controller that manages app list UI for shell. To show the UI, |
| 20 // it requests app list widget from ShellDelegate and shows it when ready. | 20 // it requests app list widget from ShellDelegate and shows it when ready. |
| 21 // While the UI is visible, it monitors things such as app list widget's | 21 // While the UI is visible, it monitors things such as app list widget's |
| 22 // activation state and desktop mouse click to auto dismiss the UI. | 22 // activation state and desktop mouse click to auto dismiss the UI. |
| 23 class AppList : public aura::EventFilter, | 23 class AppList : public aura::EventFilter, |
| 24 public ui::LayerAnimationObserver, | 24 public ui::LayerAnimationObserver, |
| 25 public views::Widget::Observer { | 25 public views::Widget::Observer { |
| 26 public: | 26 public: |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // App list widget we get from ShellDelegate. | 71 // App list widget we get from ShellDelegate. |
| 72 views::Widget* widget_; | 72 views::Widget* widget_; |
| 73 | 73 |
| 74 // A weak ptr factory for callbacks that ShellDelegate used to set widget. | 74 // A weak ptr factory for callbacks that ShellDelegate used to set widget. |
| 75 base::WeakPtrFactory<AppList> set_widget_factory_; | 75 base::WeakPtrFactory<AppList> set_widget_factory_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(AppList); | 77 DISALLOW_COPY_AND_ASSIGN(AppList); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace internal | 80 } // namespace internal |
| 81 } // namespace aura_shell | 81 } // namespace ash |
| 82 | 82 |
| 83 #endif // ASH_APP_LIST_APP_LIST_H_ | 83 #endif // ASH_APP_LIST_APP_LIST_H_ |
| OLD | NEW |