| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WM_WINDOW_SELECTOR_DELEGATE_H_ | 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_DELEGATE_H_ |
| 6 #define ASH_WM_WINDOW_SELECTOR_DELEGATE_H_ | 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 class Window; | 12 class Window; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace ash { | 15 namespace ash { |
| 16 | 16 |
| 17 // Implement this class to handle the selection event from WindowSelector. | 17 // Implement this class to handle the selection event from WindowSelector. |
| 18 class ASH_EXPORT WindowSelectorDelegate { | 18 class ASH_EXPORT WindowSelectorDelegate { |
| 19 public: | 19 public: |
| 20 // Invoked when a window is selected. | 20 // Invoked when a window is selected. |
| 21 virtual void OnWindowSelected(aura::Window* window) = 0; | 21 virtual void OnWindowSelected(aura::Window* window) = 0; |
| 22 | 22 |
| 23 // Invoked if selection is canceled. | 23 // Invoked if selection is canceled. |
| 24 virtual void OnSelectionCanceled() = 0; | 24 virtual void OnSelectionCanceled() = 0; |
| 25 | 25 |
| 26 protected: | 26 protected: |
| 27 virtual ~WindowSelectorDelegate() {} | 27 virtual ~WindowSelectorDelegate() {} |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } // namespace ash | 30 } // namespace ash |
| 31 | 31 |
| 32 #endif // ASH_WM_WINDOW_SELECTOR_DELEGATE_H_ | 32 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_DELEGATE_H_ |
| OLD | NEW |