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