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

Side by Side Diff: ui/views/examples/combobox_example.h

Issue 9965017: views: Rename ComboboxListener::ItemChanged to something more accurate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: combo_box -> combobox Created 8 years, 8 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_ 5 #ifndef UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_
6 #define UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_ 6 #define UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 21 matching lines...) Expand all
32 class ComboboxExample : public ExampleBase, public ComboboxListener { 32 class ComboboxExample : public ExampleBase, public ComboboxListener {
33 public: 33 public:
34 ComboboxExample(); 34 ComboboxExample();
35 virtual ~ComboboxExample(); 35 virtual ~ComboboxExample();
36 36
37 // Overridden from ExampleBase: 37 // Overridden from ExampleBase:
38 virtual void CreateExampleView(View* container) OVERRIDE; 38 virtual void CreateExampleView(View* container) OVERRIDE;
39 39
40 private: 40 private:
41 // Overridden from ComboboxListener: 41 // Overridden from ComboboxListener:
42 virtual void ItemChanged(Combobox* combo_box, 42 virtual void OnSelectedIndexChanged(Combobox* combobox) OVERRIDE;
43 int prev_index,
44 int new_index) OVERRIDE;
45 43
46 ComboboxModelExample combobox_model_; 44 ComboboxModelExample combobox_model_;
47 Combobox* combobox_; 45 Combobox* combobox_;
48 46
49 DISALLOW_COPY_AND_ASSIGN(ComboboxExample); 47 DISALLOW_COPY_AND_ASSIGN(ComboboxExample);
50 }; 48 };
51 49
52 } // namespace examples 50 } // namespace examples
53 } // namespace views 51 } // namespace views
54 52
55 #endif // UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_ 53 #endif // UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_
OLDNEW
« no previous file with comments | « ui/views/controls/combobox/native_combobox_views.cc ('k') | ui/views/examples/combobox_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698