Bug 1700051: part 28) Refactor `WordSplitState<T>::GetDOMWordSeparatorOffset` to...
[gecko.git] / widget / cocoa / MOZIconHelper.h
blob16f03573fc68473080eb7ad0a33b486652026964
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef MOZIconHelper_h
7 #define MOZIconHelper_h
9 #import <Cocoa/Cocoa.h>
11 #include "nsRect.h"
13 class imgIContainer;
15 namespace mozilla {
16 class ComputedStyle;
19 @interface MOZIconHelper : NSObject
21 // Returns an autoreleased empty NSImage.
22 + (NSImage*)placeholderIconWithSize:(NSSize)aSize;
24 // Returns an autoreleased NSImage.
25 + (NSImage*)iconImageFromImageContainer:(imgIContainer*)aImage
26 withSize:(NSSize)aSize
27 computedStyle:(const mozilla::ComputedStyle*)aComputedStyle
28 subrect:(const nsIntRect&)aSubRect
29 scaleFactor:(CGFloat)aScaleFactor;
31 @end
33 #endif // MOZIconHelper_h