| 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 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 virtual void LauncherItemWillChange(int index) OVERRIDE; | 102 virtual void LauncherItemWillChange(int index) OVERRIDE; |
| 103 | 103 |
| 104 // Overridden from LauncherButtonHost: | 104 // Overridden from LauncherButtonHost: |
| 105 virtual void MousePressedOnButton(views::View* view, | 105 virtual void MousePressedOnButton(views::View* view, |
| 106 const views::MouseEvent& event) OVERRIDE; | 106 const views::MouseEvent& event) OVERRIDE; |
| 107 virtual void MouseDraggedOnButton(views::View* view, | 107 virtual void MouseDraggedOnButton(views::View* view, |
| 108 const views::MouseEvent& event) OVERRIDE; | 108 const views::MouseEvent& event) OVERRIDE; |
| 109 virtual void MouseReleasedOnButton(views::View* view, | 109 virtual void MouseReleasedOnButton(views::View* view, |
| 110 bool canceled) OVERRIDE; | 110 bool canceled) OVERRIDE; |
| 111 virtual void MouseExitedButton(views::View* view) OVERRIDE; | 111 virtual void MouseExitedButton(views::View* view) OVERRIDE; |
| 112 virtual string16 GetAccessibleName(views::View* view) OVERRIDE; |
| 112 | 113 |
| 113 // Overriden from views::ButtonListener: | 114 // Overriden from views::ButtonListener: |
| 114 virtual void ButtonPressed(views::Button* sender, | 115 virtual void ButtonPressed(views::Button* sender, |
| 115 const views::Event& event) OVERRIDE; | 116 const views::Event& event) OVERRIDE; |
| 116 | 117 |
| 117 // The model; owned by Launcher. | 118 // The model; owned by Launcher. |
| 118 LauncherModel* model_; | 119 LauncherModel* model_; |
| 119 | 120 |
| 120 // Used to manage the set of active launcher buttons. There is a view per | 121 // Used to manage the set of active launcher buttons. There is a view per |
| 121 // item in |model_|. | 122 // item in |model_|. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 146 // Used to handle cycling among windows. | 147 // Used to handle cycling among windows. |
| 147 scoped_ptr<LauncherWindowCycler> cycler_; | 148 scoped_ptr<LauncherWindowCycler> cycler_; |
| 148 | 149 |
| 149 DISALLOW_COPY_AND_ASSIGN(LauncherView); | 150 DISALLOW_COPY_AND_ASSIGN(LauncherView); |
| 150 }; | 151 }; |
| 151 | 152 |
| 152 } // namespace internal | 153 } // namespace internal |
| 153 } // namespace ash | 154 } // namespace ash |
| 154 | 155 |
| 155 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ | 156 #endif // ASH_LAUNCHER_LAUNCHER_VIEW_H_ |
| OLD | NEW |