Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: views/controls/combobox/combobox_listener.h

Issue 8607001: views: Factor out Listener from Combobox into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/combobox/combobox.cc ('k') | views/views.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 // changed.
sky 2011/11/21 16:18:25 add 'of a combobx' here.
tfarina 2011/11/21 16:43:06 Done.
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_
OLDNEW
« no previous file with comments | « views/controls/combobox/combobox.cc ('k') | views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698