| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CONTROL_UTILS_H_ |
| #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CONTROL_UTILS_H_ |
| |
| #import <Cocoa/Cocoa.h> |
| |
| #include "ui/base/resource/resource_bundle.h" |
| |
| namespace constrained_window { |
| |
| // Creates a label control. |
| NSTextField* CreateLabel(); |
| |
| // Helper function to create constrained window label string with the given |
| // font and alignment. |
| NSAttributedString* GetAttributedLabelString( |
| NSString* string, |
| ui::ResourceBundle::FontStyle fontStyle, |
| NSTextAlignment alignment, |
| NSLineBreakMode lineBreakMode); |
| |
| } // namespace constrained_window |
| |
| #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CONTROL_UTILS_H_ |