Bug 1776444 [wpt PR 34582] - Revert "Add TimedHTMLParserBudget to fieldtrial_testing_...
[gecko.git] / widget / cocoa / MOZIconHelper.h
blob940768f56de94ada41f36e6f74a5b71ed7c4736f
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;
14 class nsPresContext;
16 namespace mozilla {
17 class ComputedStyle;
20 @interface MOZIconHelper : NSObject
22 // Returns an autoreleased empty NSImage.
23 + (NSImage*)placeholderIconWithSize:(NSSize)aSize;
25 // Returns an autoreleased NSImage.
26 + (NSImage*)iconImageFromImageContainer:(imgIContainer*)aImage
27 withSize:(NSSize)aSize
28 presContext:(const nsPresContext*)aPresContext
29 computedStyle:(const mozilla::ComputedStyle*)aComputedStyle
30 subrect:(const nsIntRect&)aSubRect
31 scaleFactor:(CGFloat)aScaleFactor;
33 @end
35 #endif // MOZIconHelper_h