| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 | |
| 6 #ifndef CHROME_BROWSER_UI_COCOA_BUBBLE_COMBOBOX_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BUBBLE_COMBOBOX_H_ |
| 7 #define CHROME_BROWSER_UI_COCOA_BUBBLE_COMBOBOX_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BUBBLE_COMBOBOX_H_ |
| 8 | 7 |
| 9 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 10 | 9 |
| 11 namespace ui { | 10 namespace ui { |
| 12 class ComboboxModel; | 11 class ComboboxModel; |
| 13 } // namespace ui | 12 } // namespace ui |
| 14 | 13 |
| 15 // An NSPopUpButton that auto-populates from a ui::ComboboxModel. | 14 // An NSPopUpButton that auto-populates from a ui::ComboboxModel. |
| 16 // By default it comes with a border, small font size, and small control size. | 15 // By default it comes with a border, small font size, and small control size. |
| 17 @interface BubbleCombobox : NSPopUpButton | 16 @interface BubbleCombobox : NSPopUpButton |
| 18 // Does not take ownership nor store a pointer to |model|; it is used only for | 17 // Does not take ownership nor store a pointer to |model|; it is used only for |
| 19 // population of the combobox. | 18 // population of the combobox. |
| 20 - (id)initWithFrame:(NSRect)frame | 19 - (id)initWithFrame:(NSRect)frame |
| 21 pullsDown:(BOOL)pullsDown | 20 pullsDown:(BOOL)pullsDown |
| 22 model:(ui::ComboboxModel*)model; | 21 model:(ui::ComboboxModel*)model; |
| 23 @end | 22 @end |
| 24 | 23 |
| 25 #endif // CHROME_BROWSER_UI_COCOA_BUBBLE_COMBOBOX_H_ | 24 #endif // CHROME_BROWSER_UI_COCOA_BUBBLE_COMBOBOX_H_ |
| OLD | NEW |