OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_WM_WINDOW_SELECTOR_DELEGATE_H_ |
| 6 #define ASH_WM_WINDOW_SELECTOR_DELEGATE_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 |
| 10 namespace aura { |
| 11 class Window; |
| 12 } |
| 13 |
| 14 namespace ash { |
| 15 |
| 16 // Implement this class to handle the selection event from WindowSelector. |
| 17 class WindowSelectorDelegate { |
| 18 public: |
| 19 // Invoked when a window is selected. |
| 20 virtual void OnWindowSelected(aura::Window* window) = 0; |
| 21 |
| 22 // Invoked if selection is canceled. |
| 23 virtual void OnSelectionCanceled() = 0; |
| 24 |
| 25 protected: |
| 26 virtual ~WindowSelectorDelegate() {} |
| 27 }; |
| 28 |
| 29 } // namespace ash |
| 30 |
| 31 #endif // ASH_WM_WINDOW_SELECTOR_DELEGATE_H_ |
OLD | NEW |