| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |