OLD | NEW |
(Empty) | |
| 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 VIEWS_CONTROLS_COMBOBOX_COMBOBOX_LISTENER_H_ |
| 6 #define VIEWS_CONTROLS_COMBOBOX_COMBOBOX_LISTENER_H_ |
| 7 #pragma once |
| 8 |
| 9 namespace views { |
| 10 |
| 11 class Combobox; |
| 12 |
| 13 // An interface implemented by an object to let it know that the selected item |
| 14 // of a combobox changed. |
| 15 class ComboboxListener { |
| 16 public: |
| 17 // This is invoked once the selected item changed. |
| 18 virtual void ItemChanged(Combobox* combo_box, |
| 19 int prev_index, |
| 20 int new_index) = 0; |
| 21 |
| 22 protected: |
| 23 virtual ~ComboboxListener() {} |
| 24 }; |
| 25 |
| 26 } // namespace views |
| 27 |
| 28 #endif // VIEWS_CONTROLS_COMBOBOX_COMBOBOX_LISTENER_H_ |
OLD | NEW |