| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ATHENA_HOME_MINIMIZED_HOME_H_ | 5 #ifndef ATHENA_HOME_MINIMIZED_HOME_H_ |
| 6 #define ATHENA_HOME_MINIMIZED_HOME_H_ | 6 #define ATHENA_HOME_MINIMIZED_HOME_H_ |
| 7 | 7 |
| 8 namespace aura { | |
| 9 class Window; | |
| 10 } | |
| 11 | |
| 12 namespace views { | 8 namespace views { |
| 13 class Widget; | 9 class View; |
| 14 } | 10 } |
| 15 | 11 |
| 16 namespace athena { | 12 namespace athena { |
| 17 | 13 |
| 18 class MinimizedHomeDragDelegate { | 14 class MinimizedHomeDragDelegate { |
| 19 public: | 15 public: |
| 20 virtual ~MinimizedHomeDragDelegate() {} | 16 virtual ~MinimizedHomeDragDelegate() {} |
| 21 | 17 |
| 22 virtual void OnDragUpCompleted() = 0; | 18 virtual void OnDragUpCompleted() = 0; |
| 23 }; | 19 }; |
| 24 | 20 |
| 25 // Note that |delegate| is guaranteed to be alive as long as the returned widget | 21 // Note that |delegate| is guaranteed to be alive as long as the returned view |
| 26 // is alive. | 22 // is alive. |
| 27 views::Widget* CreateMinimizedHome(aura::Window* container, | 23 views::View* CreateMinimizedHome(MinimizedHomeDragDelegate* delegate); |
| 28 MinimizedHomeDragDelegate* delegate); | |
| 29 | 24 |
| 30 } // namespace athena | 25 } // namespace athena |
| 31 | 26 |
| 32 #endif // ATHENA_HOME_MINIMIZED_HOME_H_ | 27 #endif // ATHENA_HOME_MINIMIZED_HOME_H_ |
| OLD | NEW |