BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / constrained_window / constrained_window_control_utils.h
blob7b67936d2a442f6f0084dc29811b97016b2b3d33
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CONTROL_UTILS_H_
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CONTROL_UTILS_H_
8 #import <Cocoa/Cocoa.h>
10 #include "ui/base/resource/resource_bundle.h"
12 namespace constrained_window {
14 // Creates a label control.
15 NSTextField* CreateLabel();
17 // Helper function to create constrained window label string with the given
18 // font and alignment.
19 NSAttributedString* GetAttributedLabelString(
20 NSString* string,
21 ui::ResourceBundle::FontStyle fontStyle,
22 NSTextAlignment alignment,
23 NSLineBreakMode lineBreakMode);
25 } // namespace constrained_window
27 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CONTROL_UTILS_H_