1 // Copyright (c) 2011 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 UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_LISTENER_H_ 6 #define UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_LISTENER_H_ 7 8 #include "ui/views/views_export.h" 9 10 namespace views { 11 12 // An interface implemented by an object to let it know that a tabbed pane was 13 // selected by the user at the specified index. 14 class VIEWS_EXPORT TabbedPaneListener { 15 public: 16 // Called when the tab at |index| is selected by the user. 17 virtual void TabSelectedAt(int index) = 0; 18 19 protected: 20 virtual ~TabbedPaneListener() {} 21 }; 22 23 } // namespace views 24 25 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_LISTENER_H_ 26