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