Index: views/controls/combobox/combobox_listener.h |
diff --git a/views/controls/combobox/combobox_listener.h b/views/controls/combobox/combobox_listener.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..04b16725ce46dfe5fd7dd34f344f69ab52d4a1d1 |
--- /dev/null |
+++ b/views/controls/combobox/combobox_listener.h |
@@ -0,0 +1,28 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef VIEWS_CONTROLS_COMBOBOX_COMBOBOX_LISTENER_H_ |
+#define VIEWS_CONTROLS_COMBOBOX_COMBOBOX_LISTENER_H_ |
+#pragma once |
+ |
+namespace views { |
+ |
+class Combobox; |
+ |
+// An interface implemented by an object to let it know that the selected item |
+// changed. |
sky
2011/11/21 16:18:25
add 'of a combobx' here.
tfarina
2011/11/21 16:43:06
Done.
|
+class ComboboxListener { |
+ public: |
+ // This is invoked once the selected item changed. |
+ virtual void ItemChanged(Combobox* combo_box, |
+ int prev_index, |
+ int new_index) = 0; |
+ |
+ protected: |
+ virtual ~ComboboxListener() {} |
+}; |
+ |
+} // namespace views |
+ |
+#endif // VIEWS_CONTROLS_COMBOBOX_COMBOBOX_LISTENER_H_ |