| 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_VIEW_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
| 6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ash/launcher/launcher_button_host.h" | 11 #include "ash/launcher/launcher_button_host.h" |
| 12 #include "ash/launcher/launcher_model_observer.h" | 12 #include "ash/launcher/launcher_model_observer.h" |
| 13 #include "ui/views/controls/button/button.h" | 13 #include "ui/views/controls/button/button.h" |
| 14 #include "ui/views/widget/widget_delegate.h" | 14 #include "ui/views/view.h" |
| 15 | 15 |
| 16 namespace views { | 16 namespace views { |
| 17 class BoundsAnimator; | 17 class BoundsAnimator; |
| 18 class ImageButton; | 18 class ImageButton; |
| 19 class MenuRunner; | 19 class MenuRunner; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace ash { | 22 namespace ash { |
| 23 | 23 |
| 24 struct LauncherItem; | 24 struct LauncherItem; |
| 25 class LauncherModel; | 25 class LauncherModel; |
| 26 class LauncherWindowCycler; | 26 class LauncherWindowCycler; |
| 27 class ViewModel; | 27 class ViewModel; |
| 28 | 28 |
| 29 namespace internal { | 29 namespace internal { |
| 30 | 30 |
| 31 class LauncherView : public views::WidgetDelegateView, | 31 class LauncherView : public views::View, |
| 32 public LauncherModelObserver, | 32 public LauncherModelObserver, |
| 33 public views::ButtonListener, | 33 public views::ButtonListener, |
| 34 public LauncherButtonHost { | 34 public LauncherButtonHost { |
| 35 public: | 35 public: |
| 36 explicit LauncherView(LauncherModel* model); | 36 explicit LauncherView(LauncherModel* model); |
| 37 virtual ~LauncherView(); | 37 virtual ~LauncherView(); |
| 38 | 38 |
| 39 void Init(); | 39 void Init(); |
| 40 | 40 |
| 41 private: | 41 private: |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Used to handle cycling among windows. | 147 // Used to handle cycling among windows. |
| 148 scoped_ptr<LauncherWindowCycler> cycler_; | 148 scoped_ptr<LauncherWindowCycler> cycler_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(LauncherView); | 150 DISALLOW_COPY_AND_ASSIGN(LauncherView); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace internal | 153 } // namespace internal |
| 154 } // namespace ash | 154 } // namespace ash |
| 155 | 155 |
| 156 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ | 156 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
| OLD | NEW |