1 // Copyright (c) 2012 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_COMBOBOX_COMBOBOX_LISTENER_H_ 6 #define UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_LISTENER_H_ 7 8 namespace views { 9 10 class Combobox; 11 12 // An interface implemented by an object to let it know that the selected index 13 // has changed. 14 class ComboboxListener { 15 public: 16 virtual void OnSelectedIndexChanged(Combobox* combobox) = 0; 17 18 // Handles when the combobox's style is the button style and the button is 19 // clicked. OnComboboxTextButtonClicked(Combobox * combobox)20 virtual void OnComboboxTextButtonClicked(Combobox* combobox) {} 21 22 protected: ~ComboboxListener()23 virtual ~ComboboxListener() {} 24 }; 25 26 } // namespace views 27 28 #endif // UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_LISTENER_H_ 29