| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 5 #ifndef VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| 6 #define VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 6 #define VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| 7 | 7 |
| 8 #include "views/view.h" | 8 #include "views/view.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual gfx::Size GetPreferredSize(); | 60 virtual gfx::Size GetPreferredSize(); |
| 61 virtual void Layout(); | 61 virtual void Layout(); |
| 62 virtual void SetEnabled(bool enabled); | 62 virtual void SetEnabled(bool enabled); |
| 63 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e); | 63 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e); |
| 64 | 64 |
| 65 protected: | 65 protected: |
| 66 virtual void Focus(); | 66 virtual void Focus(); |
| 67 virtual void ViewHierarchyChanged(bool is_add, View* parent, | 67 virtual void ViewHierarchyChanged(bool is_add, View* parent, |
| 68 View* child); | 68 View* child); |
| 69 virtual std::string GetClassName() const; | 69 virtual std::string GetClassName() const; |
| 70 | 70 |
| 71 private: | |
| 72 // The object that actually implements the native combobox. | 71 // The object that actually implements the native combobox. |
| 73 NativeComboboxWrapper* native_wrapper_; | 72 NativeComboboxWrapper* native_wrapper_; |
| 74 | 73 |
| 74 private: |
| 75 // Our model. | 75 // Our model. |
| 76 Model* model_; | 76 Model* model_; |
| 77 | 77 |
| 78 // Item change listener. | 78 // Item change listener. |
| 79 Listener* listener_; | 79 Listener* listener_; |
| 80 | 80 |
| 81 // The current selection. | 81 // The current selection. |
| 82 int selected_item_; | 82 int selected_item_; |
| 83 | 83 |
| 84 DISALLOW_COPY_AND_ASSIGN(Combobox); | 84 DISALLOW_COPY_AND_ASSIGN(Combobox); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace views | 87 } // namespace views |
| 88 | 88 |
| 89 #endif // VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ | 89 #endif // VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ |
| OLD | NEW |